2013-02-12 28 views
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" 
) 
); 
+0

你有沒有在用戶第一次登錄? https://developers.facebook.com/docs/howtos/login/getting-started/ – 2013-02-12 19:15:07

回答

0

嘗試更換「news.publishes」與「進」,所以代碼會

$response = $facebook->api(
'me/feed' 
'POST', 
array(
    'article' => "http://samples.ogp.me/434264856596891" 
) 
); 
相關問題