GraphMethodException Facebook API

后端 未结 3 1178
面向向阳花
面向向阳花 2020-12-19 06:17

So I\'m using the following endpoint from facebook graph-api to get a specific post data:

https://graph.facebook.com/v2.2/{post-id}?access_token=XXX

However,

相关标签:
3条回答
  • 2020-12-19 06:28

    I forgot to add the below code in my Activity and after adding this worked for me.

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        callbackManager.onActivityResult(requestCode, resultCode, data);
        super.onActivityResult(requestCode, resultCode, data);
    }
    
    0 讨论(0)
  • 2020-12-19 06:29

    I can solve this error changing the facebook setting, changed the name of the class by com.facebook.facebookactivity

    0 讨论(0)
  • 2020-12-19 06:40

    You can view an answer on this page -> Unusual behavior of facebook grap API ("type": "GraphMethodException", "code": 100)

    This isn't a bug, the error means that the data you're trying to access is not accessible to you, does not exist, has been deleted, is not available because you haven't provided an access token from a user who can see it, etc.

    See this answer for an example of this error message in relation to Facebook pages: https://stackoverflow.com/a/6847088/21062 - the same is true when trying to access user profiles if that user has blocked you, blocked your app, disabled their account or disabled all apps from accessing their information.

    0 讨论(0)
提交回复
热议问题