0

我正在尝试将状态更新发布到用户 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"
 )
);
4

1 回答 1

0

尝试用 "feed" 替换 "news.publishes" ,所以代码将是

$response = $facebook->api(
 'me/feed'
 'POST',
 array(
  'article' => "http://samples.ogp.me/434264856596891"
 )
);
于 2013-02-13T15:38:33.093 回答