2017-03-08 67 views
3

大型資料圖片我有這樣的代碼:如何獲得來自Facebook API(使用Javascript)

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 

} 

圖片字段包含一個URL,50×50的圖像。我怎樣才能得到一個更大的圖片的網址?

我一直在看這裏的文檔: https://developers.facebook.com/docs/graph-api/reference/user/picture/ 但我仍然困惑。

回答

4

也許這可以幫助

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

謝謝!我真的解決了這個問題,答案是'picture.type(large)':) – Polina

+0

謝謝,我也會試一試 –

相關問題