开发者

how to get profile images with facebook graph api

开发者 https://www.devze.com 2023-04-09 10:09 出处:网络
I need to get all开发者_如何学Python of the user profile images, Mean I need more then the user profile image

I need to get all开发者_如何学Python of the user profile images,

Mean I need more then the user profile image

I tried to get album, and to extract the images form it, but without success


You need

  • Valid access_token
  • user_photos permissions

After that, get photos


You could do this with a FQL query:

select pid, src, link, caption
from photo
where aid in 
  (SELECT aid 
   FROM album 
   WHERE owner=me() 
   and name="Profile Pictures")

This would require user_photos extended permission.

0

精彩评论

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