Facebook API: Get all profile pictures

后端 未结 6 1642
野的像风
野的像风 2020-12-23 21:26

What is the best way to get ALL profile pictures from a given user? What permissions do I need?

I know I can access the main profile pic using https://graph.fa

6条回答
  •  感情败类
    2020-12-23 22:17

    There is some way to get the albums of public users without any relation. For example, I'm not friend of the user "foo" but I want his photos. I can see his photos in the UI of Facebook but I can not get through the graph.

    I'm using explorer from facebook with all permissions and I'm getting always an empty JSON. There is some way to get the photos that I'm seeing in the UI? These photos are public.

    Real example:

    UI from facebook: https://www.facebook.com/sonia.milan.9/photos You can see all his photos.

    Using graph API: sonia.milan.9/albums Return:

    {
      "data": [
      ]
    }
    

提交回复
热议问题