问题
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:
- My user as permissions to post to that page
- My APP as requested enough permissions to publish to the page
- 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