Open Muhammad-saqib opened 8 years ago
You are fetching an app access token not a user access token, it's not associated with any user and doesn't have permissions to post to any wall.
You need to get a user access token either by using Facebook's own client-side JS sdk's FB.login
or the manual login flow, FB.getLoginUrl
in this SDK can help with that.
Actually,I have created App on my personal account,that app want to send data into my personal wall,is it not possible to send with out again authentication,authencation should be only one time or automatically do
Sent from my Windows Phone
From: Daniel Friesenmailto:notifications@github.com Sent: 4/22/2016 7:31 PM To: Thuzi/facebook-node-sdkmailto:facebook-node-sdk@noreply.github.com Cc: Muhammad-saqibmailto:saqib-abbasi@live.com; Authormailto:author@noreply.github.com Subject: Re: [Thuzi/facebook-node-sdk] unable to post in facebook 's wall (#115)
You are fetching an app access token not a user access token, it's not associated with any user and doesn't have permissions to post to any wall.
You need to get a user access token either by using Facebook's own client-side JS sdk's FB.login
or the manual login flow, FB.getLoginUrl
in this SDK can help with that.
You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/Thuzi/facebook-node-sdk/issues/115#issuecomment-213449854
No, the Facebook API does not allow that.
Hi Sir,
when i try to get access token,it will generate access token but this access Token does not post data on the wall,if i manual set access token then post on the wall then it will works
can you please guide me how to get access correctly to post data on the wall
Many thanks
var FB = require('fb');
FB.api('oauth/access_token', { client_id: 'app_id', client_secret: 'app_secret', grant_type: 'client_credentials' }, function (res) { if(!res || res.error) { console.log(!res ? 'error occurred' : res.error); return; }
});