Get user photo in profile size of photo

I am developing a Facebook application on Facebook using C #. I can get information using:

FacebookClient FBApp = new FacebookClient(getAccessToken);
dynamic user = FBApp.Get("/me");

and I can get user friends:

dynamic friends = FBApp.Get("/me/friends");

All this does not contain links to the photo. I can get a photo of the user using the link https://graph.facebook.com/ * [user_id] * / picture.

But it shows a very small photo ... How can I get a photo in a size similar to the size of a profile photo?

+3
source share
5 answers

To get a user profile picture of a certain size, call

https://graph.facebook.com/USER_ID/picture?type=SIZE

where SIZE should be replaced with one of the words

square
small
normal
large 

depending on the size you want.

URL .

:

https://graph.facebook.com/USER_ID/picture?type=large

URL- .

+15

FQL:

SELECT pic_square FROM user WHERE uid IN(SELECT uid2 FROM friend WHERE uid1 = me())

... pic_square pic_small, pic_big, pic_square, pic

URL- .

:.

https://developers.facebook.com/tools/explorer/?method=GET&path=fql%3Fq%3DSELECT%20pic_square%20FROM%20user%20WHERE%20uid%20IN%28SELECT%20uid2%20FROM%20friend%20WHERE%20uid1%20%3D%20me%28%29%29

0

@Gunnar Karlsson is true, but the sizes (in pixels) of the images do not match. For example, 180x180; 180x135. The aspect depends on the original uploaded image.

0
source

To get a facebook profile picture of a certain size, call

graph.facebook.com/USER_ID/picture?width=900
0
source

You can get the image like this: https://graph.facebook.com/v2.2/search?fields=id,picture&q= {your request} & type = user & access_token = AccessToken

-1
source

All Articles