1
我想要做的是通过活动ID获取活动照片。代码我有:获取全尺寸的facebook活动照片
function getFBphoto(event) {
FB.api(
"/"+ event +"/picture?width=500&height=500",
function (response) {
if (response && !response.error) {
console.log(response);
}
}
);}
的Facebook仍然为我提供了200像素大小的图像,我试图遵循一些建议和尝试运气这种版本的我的代码:
function getFBphoto(event) {
FB.api(
"/"+ event +"/picture",
{
"redirect": false,
"height": "500",
"type": "normal",
"width": "500"
},
function (response) {
if (response && !response.error) {
console.log(response);
}
}
);}
没有运气,还是最大200x200px的照片,同时添加大量参数仍然不会影响获得更大的照片。从FB在这两种情况下
示例响应:
Object {data: Object}
data: Object
height: 50
is_silhouette: false
url: "https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/t1/c114.0.200.200/p200x200/1656179_10201352079056227_1689058768_n.jpg"
width: 50
__proto__: Object
__proto__: Object
的问题是: 如何得到事件的实际尺寸的照片(用于如:https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-prn2/t1/1507953_584284274994290_910086685_n.jpg)与API调用。
谢谢,有一件事我不会低估为什么它没有在API参考文献中列出,你需要做这样的挖掘工作吗? –