Ronaldinio
Ronaldinio

Reputation: 11

how to get profile images with facebook graph api

I need to get all 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

Upvotes: 0

Views: 1400

Answers (2)

bkaid
bkaid

Reputation: 52063

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.

Upvotes: 1

genesis
genesis

Reputation: 50966

You need

  • Valid access_token
  • user_photos permissions

After that, get photos

Upvotes: 1

Related Questions