只是想问为什么我的 facebook graph api 没有返回任何结果,但它确实在我的本地主机中工作。它与我的托管站点(ipage)有什么关系吗?
这是代码:
$FBpage = file_get_contents('https://graph.facebook.com/26484009688027 /members?access_token=***&limit=300');
$FBdata = json_decode($FBpage);
foreach ($FBdata->data as $tcc_members ) {
$StatusID = explode("_", $tcc_members->id);
echo '<li>';
if (!empty($tcc_members->name)) {
echo '<img src="https://graph.facebook.com/'.$tcc_members->id.'/picture?type=square"';
echo "$tcc_members->name";
}
echo '</li>'; }
?>