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

user599263 picture user599263 · Feb 2, 2011 · Viewed 10.3k times · Source

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 who uploaded them.

Answer

SooR picture SooR · Nov 9, 2012

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