你需要「manage_pages」張貼在牆上頁面還允許檢查,如果你的頁面發佈或不
$attachment = array(
'access_token' => $pageAccessToken,
'name' => $title,
'link' => $url,
'description' => $desc
);
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://graph.facebook.com/'.$pid.'/feed');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output
$result = curl_exec($ch);
curl_close ($ch);
什麼樣的應用程序是什麼?你張貼到牆?或到您的應用程序?什麼是你的網頁網址? – 2012-04-17 13:39:14