Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/393.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我想在我的网站上显示facebook页面状态和评论_Php_Facebook - Fatal编程技术网

Php 我想在我的网站上显示facebook页面状态和评论

Php 我想在我的网站上显示facebook页面状态和评论,php,facebook,Php,Facebook,全部。 我想在页脚中显示facebook页面状态和评论,以及我网站facebook区域的当前更新。 我已经搜索了很多,但发现这个链接总是链接。 但是这个链接是关于网站上的评论。 我想要一个特定facebook页面的状态和更新。 请帮帮我 关于: 阿卜杜勒·萨塔尔 Neosmart Facebook Wall Jquery插件将帮助您…… function getSslPage($url) { $ch = curl_init(); curl_setopt($ch, CURLOP

全部。 我想在页脚中显示facebook页面状态和评论,以及我网站facebook区域的当前更新。 我已经搜索了很多,但发现这个链接总是链接。 但是这个链接是关于网站上的评论。 我想要一个特定facebook页面的状态和更新。 请帮帮我

关于: 阿卜杜勒·萨塔尔

Neosmart Facebook Wall Jquery插件将帮助您……

 function getSslPage($url) {
    $ch = curl_init();
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
     curl_setopt($ch, CURLOPT_HEADER, false);
     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
     curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_REFERER, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $result = curl_exec($ch);
     curl_close($ch);
     return $result; }

 require_once 'facebook/src/facebook.php'; //you have to download facebook SDK
$page_id ='387244981394957';
 $access_token ='478845318813590|BjcO5R6IteJHg1m2xsVlanTegZY'; 
//Please get your own access tolken
     getSslPage('https://graph.facebook.com/' . $page_id .
     '/posts?access_token=' . $access_token);

//Interpret data
 $fbdata = json_decode($json_object, true);
var_dump($fbdata);
Neosmart一个Facebook Wall Jquery插件将帮助您…

从阅读本开始从阅读本开始
 function getSslPage($url) {
    $ch = curl_init();
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
     curl_setopt($ch, CURLOPT_HEADER, false);
     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
     curl_setopt($ch, CURLOPT_URL, $url);
   curl_setopt($ch, CURLOPT_REFERER, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    $result = curl_exec($ch);
     curl_close($ch);
     return $result; }

 require_once 'facebook/src/facebook.php'; //you have to download facebook SDK
$page_id ='387244981394957';
 $access_token ='478845318813590|BjcO5R6IteJHg1m2xsVlanTegZY'; 
//Please get your own access tolken
     getSslPage('https://graph.facebook.com/' . $page_id .
     '/posts?access_token=' . $access_token);

//Interpret data
 $fbdata = json_decode($json_object, true);
var_dump($fbdata);