开发者

Facebook API get user accesstoken for app

开发者 https://www.devze.com 2023-03-04 05:33 出处:网络
I am posting to my facebook wall through my app using my 开发者_如何学Cuser. I gave to the app offline access but still, sometimes the accesstoken changes.

I am posting to my facebook wall through my app using my 开发者_如何学Cuser. I gave to the app offline access but still, sometimes the accesstoken changes.

I would like to know if its possible to use Facebook API to get the accesstoken?

Right now, I used the example.php from the facebook sdk to login and took the accesstoken from there.

again, I dont want the application accesstoken. I want to user accesstoken of using the app.

Thanks.


There is App Login section in Authorization paragraph in https://developers.facebook.com/docs/reference/api/ . Read it. You have to call it if you get invalid access token error in order to refresh the token. However, sometimes the token is invalid due to lack of permissions and not because the token is expired

0

精彩评论

暂无评论...
验证码 换一张
取 消