How do I retrieve photos from a Facebook group using the GraphAPI?

后端 未结 5 1734
滥情空心
滥情空心 2021-02-02 13:36

I would like to retrieve photos from a facebook group using the GraphAPI. Based on FB Docs I don\'t see any connections to photos. I would like to get the photos and the users w

5条回答
  •  别那么骄傲
    2021-02-02 14:08

    Graph API:

    http://graph.facebook.com/GROUP_ID/?fields=name,description,albums

    return

    {
      "name": "Group name",
      "description": "Group description",
      "id": "GROUP_ID",
      "albums": {
        "data": [
          {
            "id": "GROUP_ALBUM_ID",
            "name": "GROUP_ALBUM_NAME",
            "link": "GROUP_ALBUM_LINK",
            "created": 1352388257,
            "modified": 1352388257,
            "cover_pid": 444427468954616,
            "count": 22
          }
        ],
        "paging": {
          "next": "https://graph.facebook.com/GROUP_ID/albums?limit=25&offset=25"
        }
      }
    }
    

    and next query

    http://graph.facebook.com/GROUP_ALBUM_ID/photos?fields=picture,source,name&type=uploaded

提交回复
热议问题