这是我的剧本
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);
现在,我收到朋友们的照片,但他们的分辨率最低。我想要大图片,我该怎么做?
编辑:我找到了解决方法。而不是使用
friend.picture
我用过
friend.picture.replace("_q","_n")
答案 0 :(得分:1)
来自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())