How to get profile picture in real size from user?

Having the user ID ID, I know that I can get the profile image as follows:

http://graph.facebook.com/xUID/picture?type=large

The problem is that the image returned from this URL is not the actual size (about 200 pixels wide).

I need to get this user image, but the actual size.

What i have done so far:

1. Getting custom albums

https://graph.facebook.com/me/albums?access_token=xToken

2. Iterate on this and get the album with type = "profile".

3. With this album ID (xAID) I can build a FQL query:

SELECT pid, object_id, src_big FROM photo WHERE album_object_id = xAID

4. And get profile pictures.

5. I need to iterate and find the last one uploaded by the user.

, . / / ?

!

+3
5

, . .

Julio , "" WHERE, .

0

FQL:

SELECT pid, object_id, src_big
FROM photo 
WHERE object_id IN 
  (SELECT cover_object_id 
   FROM album 
   WHERE owner=me() AND type="profile")

src_big . , me() .

+1

The cover photo is also not always the latest photo taken a few days ago.

0
source

Get cover_object_id:

fql? q = SELECT cover_object_id, enter FROM album WHERE owner = "userid" AND type = "profile"

Get src_big:

fql? q = SELECT pid, object_id, src_big FROM photo WHERE object_id = "cover identifier obtained above"

img src = "src_big obtained above"

Does it help something?

-1
source

All Articles