facebook-android-sdk error: publish_actions being required to post a share dialog

安稳与你 提交于 2020-01-04 05:33:15

问题


I have required publish_actions to my application in order to publish in users wall, but it was denied because (it was said) Facebook does not require publish_actions.

But I am trying to share a picture through the following code using Share Dialog:

SharePhoto photo = new SharePhoto.Builder()
                .setBitmap(bitmapLogoPhoto)
                .setCaption("Teste")
                .build();

        SharePhotoContent photoContent = new SharePhotoContent.Builder()
                .addPhoto(photo)
                .build();

        //shareDialog.show(photoContent, ShareDialog.Mode.FEED);

        shareDialog.show(photoContent,ShareDialog.Mode.WEB);

...and ,even though it works with test users, I am getting the following error message from Facebook when using a real user :

{FacebookGraphResponseException: (#200) Requires extended permission: publish_actions httpResponseCode: 403, facebookErrorCode: 200, facebookErrorType: OAuthException, message: (#200) Requires extended permission: publish_actions}

What is the problem? How can I make it work properly?

来源:https://stackoverflow.com/questions/47912271/facebook-android-sdk-error-publish-actions-being-required-to-post-a-share-dialo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!