是否可以获取使用我的应用程序的每个人的用户信息
如果我们在注册时没有捕获信息,是否有办法查看我们的用户是谁?
或者,如果我拥有某个用户的部分信息,我可以获得他们同意分享的更多信息吗?
If we didn't capture the information at signup is there a way to see who our users are?
Or if I have partial info on a user can I get more info they agreed to share?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须使用访问令牌获得特定的扩展权限。所以基本上,如果他们同意分享,您可以获得更多信息。
You have to get specific extended permissions with a access token. So basically, you can get more info if they agree to share.
当用户通过 Facebook 注册您的网站时,他会授予您访问基本信息(以及您获得许可的所有其他信息)的权限。
Facebook 的核心就是权限。您要求用户授予访问用户数据的权限。换句话说,您可以访问您有权访问的任何数据。
您可以随时使用有效的访问令牌和用户 ID 等用户参考来访问用户名、位置等基本信息(即使您在注册时没有捕获信息)。
即使用户离线,您也可以获得offline_access权限来发布或获取用户数据。
When user signs up in your website via facebook,he gives you pemission to access basic info(and all other info for which you took pemission).
Facebook is all about pemissions.You ask the user to grant permission to access user data.In other words,You can access any data for which you have permission.
You can access the basic info like User name,Location,etc.(Which come under basic info) at any time(even if you didn't capture the information at signup ) with a valid access token and a user reference like user ID.
You can get the offline_access permission to publish or get user data even when user is offline.
您需要记录用户 ID 才能轻松检索图片,因为无法获取已批准您的应用程序的用户列表。覆盖大多数用户的一种解决方法是使用 Facebook Graph API 根据您所说的记录的电子邮件搜索用户。你可以这样做:
https://graph.facebook.com/[电子邮件受保护]&type=user&access_token=...
You would have needed to have recorded the user id in order to retrieve the picture easily as there is no way to get a list of users that have approved your app. One workaround that will cover a majority of your users is to use the Facebook Graph API to search for users based on the email that you say you recorded. You could do something like:
https://graph.facebook.com/[email protected]&type=user&access_token=...