开发者

Facebook REST Api with OAuth tokens

开发者 https://www.devze.com 2022-12-30 06:07 出处:网络
As described in the Facebook Auth guide, I\'m able to make (most) old REST API calls with OAuth tokens

As described in the Facebook Auth guide, I'm able to make (most) old REST API calls with OAuth tokens

i.e.

http://api.facebook.com/restserver.php?
    method=friends.get&
    app_id=...&
    v=1.0&
    call_id=...&
    sig=...

becomes

https://api.facebook.com/restserver.php?
    method=friends.get&
    token=...

This does NOT work with the method "admin.setAppProperties". I get an "Application does not have permission for this action" error. The OAuth token I have though, has granted every available permission including offline access to my app,开发者_StackOverflow社区 however. Any clue whats going on? Facebook docs and forums are characteristically mum.


In case you haven't managed to fix it yet, I've found the problem with their documentation:

the parameter name for the access token is wrong: it is "access_token" and not "token"

https://api.facebook.com/restserver.php?
    method=friends.get&
    access_token=...
0

精彩评论

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