facebook long term token “(#200) User must have accepted TOS”

江枫思渺然 提交于 2020-01-15 04:58:09

问题


From what I've seen no one as given a good answer to this question about using a long term token to publish contents in a Facebook page.

So, I've checked:

  1. My user as permissions to post to that page
  2. My APP as requested enough permissions to publish to the page
  3. I've used the page temporary token to request the long term token to publish to the page

I've got the page temporary token with this GET:

var obj;

FB.api("/me/accounts",
    function (response) {
      if (response && !response.error) {
       obj = response;
      }
    }
);

obj.data[1] -> Has the temporary page token that allows me to get the Long term token

I've got the long term token with this GET: https://graph.facebook.com/oauth/access_token? grant_type=fb_exchange_token& client_id={app-id}& client_secret={app-secret}& fb_exchange_token={short-lived-token}

and when I try to post to the page I have a OAUTHException "(#200) User must have accepted TOS"

I am using Facebook SDK for Javascript.

Can someone tell me what the "User must have accepted TOS" mean?

Thanks in advance

来源:https://stackoverflow.com/questions/25606604/facebook-long-term-token-200-user-must-have-accepted-tos

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