facebook feeds without authentication token
$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
}
}
I found this code when I searched on google. But I did it as they indicated in their post, but now it’s not working ?
It’s not possible. Check this out.
This request: https://graph.facebook.com/cocacola/feed
Returns this response:
Facebook likely requests an access_token so that they can rate-limit this call. It doesn’t need to be a user
access_token, just at least an App Access levelaccess_token. Read about the differences here: https://developers.facebook.com/docs/concepts/login/access-tokens-and-types/