Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to post in facebook 's wall #115

Open
Muhammad-saqib opened this issue Apr 22, 2016 · 3 comments
Open

unable to post in facebook 's wall #115

Muhammad-saqib opened this issue Apr 22, 2016 · 3 comments

Comments

@Muhammad-saqib
Copy link

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;
}

var accessToken = res.access_token;

});

@dantman
Copy link

dantman commented Apr 22, 2016

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.

@Muhammad-saqib
Copy link
Author

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:[email protected]
Sent: ‎4/‎22/‎2016 7:31 PM
To: Thuzi/facebook-node-sdkmailto:[email protected]
Cc: Muhammad-saqibmailto:[email protected]; Authormailto:[email protected]
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:
#115 (comment)

@dantman
Copy link

dantman commented Apr 22, 2016

No, the Facebook API does not allow that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants