0
我想抓住張貼到本頁面牆上的照片。 下面是我的代碼:來自Facebook牆壁的照片來源
include_once 'facebook.php';
include_once 'config.php';
require 'DropboxUploader.php';
$feed = $facebook->api('/me/feed');
foreach($feed['data'] as $feeds)
{
if(!$feeds["object_id"]==null)
{
echo "Feeds secion", "<br />";
echo $feeds["picture"], "<br />";
echo "<img src='{$feeds['picture']}' />", "<br />";
//echo "This is feed object_id ".$feeds["object_id"], "<br />";
echo "This is feed id ".$feeds["id"], "<br />";
$target_path = "uploads/";
$target_path = $target_path . basename($feeds["picture"]);
$content = file_get_contents($feeds["source"]);
file_put_contents($target_path, $content);
$uploader = new DropboxUploader('[email protected]', 'testing');
$uploader->upload($target_path, 'imageStore');
}
}
我能搶到這是圖像的縮略圖畫面。我想問問我怎樣才能抓住實際的照片來源本身,而不是縮略圖。
請指教我。謝謝!
這僅適用於照片是由創作者本身貼到牆上的情況。 – meAtStackOverflow 2011-03-22 07:27:24