I've been trying to use the FB JS API to POST a comment.
FB.api("/" + myFBPageId + "/comments", "post", {
"fb:explicitly_share": true
"message": contents
}, function(response) { console.log(response) })
Despite having both publish_actions and publish_stream permissions, I keep encountering this exception:
"message":"(#200) Permissions error","type":"OAuthException","code":200
Why is this happening? I have confirmed that I am authenticated with Facebook on my site by running this test:
FB.login(function(response) {
console.log(response);
}, {scope: 'publish_stream'});
So my question is, what is causing the permissions error and how can I resolve it?