没有身份验证令牌的 Facebook 提要
$pageID = "ID of Page"
$url = "https://graph.facebook.com/". $pageID ."/feed";
$json = file_get_contents($url);
$jsonData = json_decode($json);
foreach($jsonData->data as $val) {
if($val->from->id == $pageID) { //find the first matching post/status by a fan page admin
$message = $val->message;
echo $message;
break; //stop looping on most recent status posted by page admin
}
}
当我在谷歌上搜索时,我发现了这个代码。但是我按照他们在帖子中指出的那样做了,但现在它不起作用?