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

后端 未结 5 1738
滥情空心
滥情空心 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:19

    I don't think Albums in groups R treated like albums on Profile pages. The pics have aid ="0" Even if they are part of albums.

    I used The Image below:

    https://www.facebook.com/photo.php?fbid=10151350034089218 is the link to the image. And you can guess where I got the object_ID.

    In this example 10151350034089218 is the object_ID for an image in an album for my group "T_Group" The link to the group is https://www.facebook.com/groups/217697621700825/.

    You can then run the FQL query

    SELECT aid 
      FROM photo 
     WHERE object_id = 10151350034089218
    

    you'll get

    aid
    ====
    0
    

    Even though it is part of an album "Hugh Laurie".

    I tried the same FQL query with images in albums on my profile and they always returned an aid with some Number other than 0.

    I plan on posting to Facebook bugs, I hope I get a fix. Unless its running as intended.

    I tried:

    SELECT pid 
      FROM photo_tag 
     WHERE subject =217697621700825
    

    ...and I got PIDs to photos posted to the group page not images in albums.

提交回复
热议问题