Can the full name and profile picture of a user signed in via Facebook API be displayed publicly?

为君一笑 提交于 2020-01-11 13:41:05

问题


Rephrased, is it possible to use the Facebook Open Graph API to display a user's full name and profile picture to other site members who are not Facebook friends with the user?


回答1:


Yes; users' first name, last name and profile picture are publicly available. You can retrieve them from the Graph API (along with other information they have made available) by calling:

https://graph.facebook.com/[user_id_or_name]

This will return a JSON string containing the relevant information.

Enjoy! :)



来源:https://stackoverflow.com/questions/4451248/can-the-full-name-and-profile-picture-of-a-user-signed-in-via-facebook-api-be-di

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