0
我想發佈一個狀態更新到用戶Facebook時間線,然後我運行這個,沒有任何反應。如何發佈並更新到用戶Facebook時間表?
require_once('sdk/src/facebook.php');
$facebook = new Facebook(array(
'appId' => AppInfo::appID(),
'secret' => AppInfo::appSecret(),
'sharedSession' => true,
'trustForwarded' => true,
));
$response = $facebook->api(
'me/news.publishes'
'POST',
array(
'article' => "http://samples.ogp.me/434264856596891"
)
);
你有沒有在用戶第一次登錄? https://developers.facebook.com/docs/howtos/login/getting-started/ – 2013-02-12 19:15:07