0
我已經成功從myapp登錄到facebook並獲得了accesstoken,但是當我在我的牆上發佈消息時,我得到了以下異常。從android發佈消息在facebook牆上。
{"error":{"message":"(#10) Application does not have permission for this action","type":"OAuthException","code":10}}
代碼是:
Bundle parameters = new Bundle();
parameters.putString("message", "hello ...");
parameters.putString(Facebook.TOKEN, mFacebook.getAccessToken());
try {
String response = mFacebook.request("me/feed", parameters,"POST");
} catch (IOException e)
{}
你給Facebook的publish_stream權限從您的應用程序發佈? – 2013-02-13 08:47:45
我在authzing時給了publish_stream選項mFacebook.authorize(MainActivity.this,PERMISSIONS,new DialogListener(){ – user2064024 2013-02-13 08:57:37