3
我在我們的酒吧網站上創建了一個Facebook畫廊,該頁面從我們的Facebook業務頁面中提取我們的相冊。當我在粉絲頁面上放置年齡限制時,我無法查看相冊。我怎樣才能保持年齡限制,並仍然可以在我們的網站上看到相冊。該網站有一個內置的代碼來驗證年齡,然後讓他們看到該網站。受年齡限制的查看頁面
$FBid = '116312615074882'; // Will add a Admin item for this
//Get the contents of a Facebook page
$FBpage = file_get_contents('https://graph.facebook.com/'.$FBid.'/albums');
//Interpret data with JSON
$photoData = json_decode($FBpage);
foreach($photoData->data as $data) {
$images[] = array(
'id' => $data->id,
'name' => $data->name
);
}
$this->data->images = $images;
$this->template
->title('Facebook Gallery')
->build('index', $this->data);