Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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) {
- $message = $val->message;
- echo $message;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment