我正试图在公共页面上发帖而不是我...我正在使用此代码:
`FB.api( "/https://www.facebook.com/XXXXXX/feed", "POST", { "message": "This is a test message" }, function (response) { if (response && !response.error) { console.log('riuscito:'+response); } else { console.log('fallito:'+JSON.stringify(response.error)); } } );`
其中“/ https://www.facebook.com/XXXXXX/feed ", is the facebook public page. I Logging into facebook with my user and this code it's ok, but I received an error like this: fallito:{" message ":"(#210)需要页面访问令牌才能请求此资源."," type ":" OAuthException "," code”:210}
当此页面不是我的时,如何从https://www.facebook.com/XXXXXX/feed获取页面访问令牌?可能吗?谢谢卡罗
1 回答
您无法获得您不拥有的页面的页面令牌 .
您只能尝试使用用户令牌,但您的API调用错误: