2011-06-23 38 views

回答

5

一旦連接到您的應用程序,所有你需要的是抓住他們的用戶ID。你可以通過撥打https://graph.facebook.com/me(或解析Facebook給你的access_token)來獲得。要獲取用戶朋友的照片,您需要訪問/我/朋友並獲取該ID。你最有可能尋找的圖像是這個,因爲這是他們的臉和總是小squre:

https://graph.facebook.com/4/picture?type=square

Zuck Square

其他的圖像都將在用戶之間的可變尺寸:

https://graph.facebook.com/4/picture?type=small

Zuck small

https://graph.facebook.com/4/picture?type=normal

Zuck normal

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

Zuck large

+0

完美,謝謝。 – Gajus

相關問題