检索超过默认限制的facebook帖子

检索超过默认限制的facebook帖子,facebook,posts,Facebook,Posts,有没有办法从facebook上获取更多帖子?我正在开发一个网站,需要从facebook检索至少200篇帖子。现在我只收到24个帖子。有可能得到200个帖子吗 $user_posts = json_decode(@file_get_contents( 'https://graph.facebook.com/me/posts?access_token='.$access_token)); $user_posts = (array)$user_posts; $user_post

有没有办法从facebook上获取更多帖子?我正在开发一个网站,需要从facebook检索至少200篇帖子。现在我只收到24个帖子。有可能得到200个帖子吗

 $user_posts = json_decode(@file_get_contents(
           'https://graph.facebook.com/me/posts?access_token='.$access_token));
$user_posts = (array)$user_posts;
$user_posts = $user_posts['data'];
echo "<h1>Posts</h1>";
foreach($user_posts as $user_post){
    $user_post = (array)$user_post;

    echo "<table border='8' width='500'>";
    if(($user_post['picture'])||($user_post['message'])){
        echo "<tr>";
        echo '<td height="4"></td>';
        echo "<td>";
        if($user_post['message']){
            echo "<tr><td>Message : ".$user_post['message']."</td></tr>";
        }
           }
    }
$user\u posts=json\u decode(@file\u get\u contents(
'https://graph.facebook.com/me/posts?access_token=“.$access_token”);
$user\u posts=(数组)$user\u posts;
$user_posts=$user_posts['data'];
回应“帖子”;
foreach($user\u post为$user\u post){
$user\u post=(数组)$user\u post;
回声“;
如果($user_post['picture'])| |($user_post['message'])){
回声“;
回声';
回声“;
如果($user_post['message'])){
回显“Message:$user_post['Message']。”;
}
}
}

谢谢。

我找到了这个问题的答案。 只需在url中添加一个限制字段

$user\u posts=json\u decode(@file\u get\u contents(
'https://graph.facebook.com/me/posts?access_token=“.$access_token.&limit=200”)

我找到了这个问题的答案。 只需在url中添加一个限制字段

$user\u posts=json\u decode(@file\u get\u contents( 'https://graph.facebook.com/me/posts?access_token=“.$access_token.&limit=200”)