This is my script
var accessToken = window.location.hash.substring(1);
var path = "https://graph.facebook.com/me/friends?";
var queryParams = [accessToken, 'callback=facebookGet' ,'fields=picture,name', 'type=large'];
var query = queryParams.join('&');
var url = path + query;
// use jsonp to call the graph
var script = document.createElement('script');
script.src = url;
document.body.appendChild(script);
Now, I get the friends' pictures, but they're in the lowest resolution. I want large pictures, how do I do it?
edit: I found a workaround. Instead of using
friend.picture
I used
friend.picture.replace("_q","_n")
来自https://developers.facebook.com/docs/reference/fql/user/
SELECT uid, name, pic_big FROM user WHERE uid IN (SELECT uid1 FROM friend WHERE uid2=me())
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.