0

我正在处理这个问题很长时间。我已经在 facebook 上注册了我的应用程序,但我仍然收到此错误:

{"error":{"message":"必须使用活动访问令牌来查询当前用户的信息。","type":"OAuthException","code":2500}

我的代码:

facebook = new Facebook("3************0");
facebook.authorize(this, new String[] { "publish_stream","user_status"}, new FaceDialog());
// dialog will shown and I log in into facebook
String token = facebook.getAccessToken(); // returns null

Bundle parameters = new Bundle();
parameters.putByteArray("message", "Haloooo".getBytes());
parameters.putByteArray("description", "test test test".getBytes());
response = facebook.request("me");
response = facebook.request("me/feed", param, 
                    "POST");

有人解决了这个问题吗?

4

0 回答 0