Facebook access token invalid with message “session does not match current stored session”?

后端 未结 6 2209
一整个雨季
一整个雨季 2020-12-13 13:27

I have recently started getting this error while posting to facebook newsfeed stream of an app user, I do have an offline access permission for the access tokens, and they w

6条回答
  •  失恋的感觉
    2020-12-13 13:38

    This is undocumented but I just tested it and it works with expired access tokens. Should work on access tokens that have been invalided if you know their user id, and they haven't revoked privileges to your app. First, you can verify that you still have have the permissions you need by calling using this url:

    https://graph.facebook.com/userID/permissions?access_token=appID|appSecret

    If you still have publish_stream permissions, you can issue a HTTP POST to this url:

    https://graph.facebook.com/userID/feed with post parameters of access_token=appID|appSecret&message=test message

提交回复
热议问题