开发者

Facebook API : How to display user's name whitout auth?

开发者 https://www.devze.com 2023-02-19 19:16 出处:网络
My question is very simple On this page: http://www.facebook.com/axef开发者_运维知识库an?sk=app_116526158422952

My question is very simple

On this page: http://www.facebook.com/axef开发者_运维知识库an?sk=app_116526158422952

How did they do to show the names of the connected user, without asking permission? I thought it was not possible to have UID of a member without going through auth?


You don't need an access token to get the name of something in Facebook. You just need the id of whatever it is you are checking (Person, page, event, etc).

For example, you can check these without appending any access token to the URL:

http://graph.facebook.com/595869823?fields=id,name

http://graph.facebook.com/292378408255?fields=id,name

0

精彩评论

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

关注公众号