开发者

Facebook API PHP Get The ID Of User's "Profile Pictures" Album

开发者 https://www.devze.com 2023-02-07 06:43 出处:网络
I would like to get all of the pictures from a user\'s \"Profile Pictures\" album on facebook. However, I did not find any reference to selecting this album in Facebook\'s Documentation.

I would like to get all of the pictures from a user's "Profile Pictures" album on facebook.

However, I did not find any reference to selecting this album in Facebook's Documentation.

Do you have any idea on how to do that?

I've found the solution myself-run an fql quer开发者_运维技巧y in the table "album" with type "profile".

Facebook Developers FQL


The accepted answer for this question wasn't helpful for me but here is the FQL that works for me:

SELECT aid FROM album WHERE owner = me() AND type = 'profile'

Keep in mind that an album has 2 types of IDs. There's the album id (aid) specific to the album and the object_id which is what you can use to identify the object from the Facebook Graph API.


First, you need to get permission from user. Such as user_photos permission. Once you permitted, you can retrieve user photos by FQL.

0

精彩评论

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