开发者

Access through Facebook application to group or event photos

开发者 https://www.devze.com 2023-03-28 00:01 出处:网络
I try to figure out how to access facebook group or event photos/albums. The graph API of the group/event object doesnot have a connection for photo or pictures.

I try to figure out how to access facebook group or event photos/albums. The graph API of the group/event object doesnot have a connection for photo or pictures.

Any other way to access photo and pi开发者_开发技巧ctures from groups or events - perhaps through FQL?


Check out https://developers.facebook.com/docs/reference/fql/photo_tag/ that would allow you to access an event's photos given the event ID.

SELECT pid FROM photo_tag WHERE subject=$eid

You can make a similar query for groups. Here are the permissions you would need to get from your user assuming the event/group is not public.

Groups: user_groups

Events: user_photo_video_tags

You should not need an access token if the event/group is public.


The API does have a connection for getting event photos now, it is [event_id]/photos and needs read_stream permission if the event is public otherwise it also needs user_events or friends_events permission

If you want to get photos of a group check this question: retrieve photos from a facebook group using the GraphAPI

0

精彩评论

暂无评论...
验证码 换一张
取 消