Polina
Polina

Reputation: 457

How to get large profile picture from Facebook API (using Javascript)

I have this code:

FB.api('/me', 
{fields: 'id, first_name, last_name, email, link, gender, picture'}, 
function(response) {

Pass data to php file which saves it in the database

}

The picture field contains an url to a 50x50 image. How can I get an url to a larger picture?

I have been looking at the documentation here: https://developers.facebook.com/docs/graph-api/reference/user/picture/ but I am still confused.

Upvotes: 3

Views: 1907

Answers (1)

Jean-Marc Amon
Jean-Marc Amon

Reputation: 989

Maybe this can help

$facebook->api(me?fields=picture.width(800).height(800))

Upvotes: 4

Related Questions