fb test

$page_id = ‘agricmanagementservices’;
$access_token = ‘1704766449848129|oQtW-ZmJQFF_2OakfqLULpHUFo4’;
//Get the JSON
$json_object = @file_get_contents(‘https://graph.facebook.com/’ . $page_id .
‘/posts?access_token=’ . $access_token);
//Interpret data
$fbdata = json_decode($json_object);

foreach ($fbdata->data as $post )
{
$posts .= ‘

link . ‘”>’ . $post->message . ‘

‘;
$posts .= ‘

‘ . $post->description . ‘

‘;
$posts .= ‘
‘;
}
//Display the posts
echo $posts;