Facebook API停在25张照片

时间:2017-02-28 23:57:47

标签: facebook facebook-graph-api

我尝试使用limit参数在我的脸书页面上选择相册中的照片。 javascript api只是忽略参数并根据

https://developers.facebook.com/docs/graph-api/reference/photo/

此端点没有任何参数。所以我想弄清楚如何为包含更多的专辑返回超过25张照片。以下是我的代码中返回照片的部分

FB.api(
    '/'+id+'/photos?limit=100',
    'GET',
    {"fields":"link,source"},
    function(response) {
        $(location).children().remove();
        for ( var i = 0; i < response.data.length; i++) {
            $(location).append('<li><a href="'+response.data[i].link+'" target="_blank"><img src="'+response.data[i].source+'"/></a></li>');
        }
    }
);

如果有人可以帮助我弄清楚为什么以及如何使用照片图表api获得超过25个结果,这将是非常棒的!

0 个答案:

没有答案