Is it possible to get the User Id without the authorization?

大兔子大兔子 提交于 2019-12-19 12:22:06

问题


Is it possible to get the user ID without authorization?

It used to work with getUser but it doesn't now. Are these new changes from Facebook or is there any other possibility to get user ID or the name to welcome the user?


回答1:


No, users must give permission before you can get their user id.




回答2:


See http://developers.facebook.com/docs/reference/api/permissions/

Basic Information

When a user allows you to access their basic information in an auth dialog, you have access to their user id, name, profile picture, gender, age range, locale, networks, user ID, list of friends, and any other information they have made public.

To get access to any additional information about the user or their friends you need to ask for specific permissions from the user.



来源:https://stackoverflow.com/questions/8730522/is-it-possible-to-get-the-user-id-without-the-authorization

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!