0
我正在嘗試從Facebook獲取相冊和照片。我使用下面的代碼,但結果總是空陣列?爲什麼我無法從我的Facebook帳戶獲取專輯?
$albums = $facebook->api('/logudotcom/albums');
// to print
show_output ($albums);
foreach($albums['data'] as $album)
{
// get all photos for album
$photos = $facebook->api("/{$album['id']}/photos");
foreach($photos['data'] as $photo)
{
echo "<img src='{$photo['source']}' />", "<br />";
}
}
我接到一個電話回覆是這樣,[安裝] => 1 [書籤] => 1 – logudotcom 2012-03-01 05:29:40
所以,不,你沒有權限訪問用戶的照片 - 查看這兩個文件: https://developers.facebook.com/docs/authentication/和https://developers.facebook.com/docs/reference/api/permissions/ – Igy 2012-03-01 09:37:06
所以,我需要設置權限以允許用戶?請幫忙 – logudotcom 2012-03-01 16:09:25