Here is what I did to get message information .. rude, but it works. Note that stakes like comments and reactions one level deeper in the JSON object.
$posts = json_decode($output); // from FB Graph v2.8 API call foreach($posts->data as $post) { echo "MESSAGE: ", $post->message, "<br>"; echo "NAME: ", $post->name, "<br>"; echo "TYPE: ", $post->type, "<br>"; echo "ID: ", $post->id, "<br>"; echo "LINK: ", $post->link, "<br>"; echo "PERMALINK: ", $post->permalink_url, "<br>"; echo "CREATED: ", $post->created_time, "<br>"; if($post->shares->count == "") { $shares = "0"; } else { $shares = $post->shares->count; } echo "SHARES: ", $shares, "<br>"; if($post->reactions->summary->total_count == "") { $reactions = "0"; } else { $reactions = $post->reactions->summary->total_count; } echo "REACTIONS: ", $reactions, "<br>"; if($post->comments->summary->total_count == "") { $comments = "0"; } else { $comments = $post->comments->summary->total_count; } echo "COMMENTS: ", $comments, "<br>"; if($post->likes->summary->total_count == "") { $likes = "0"; } else { $likes = $post->likes->summary->total_count; } echo "LIKES: ", $likes, "<br>"; echo "<br><br>"; }
source share