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

前端 未结 1 545
耶瑟儿~
耶瑟儿~ 2021-01-26 16:41

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条回答
  • 2021-01-26 17:14

    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! :)

    0 讨论(0)
提交回复
热议问题