如何向用户发布消息';s最近在facebook上使用php进行的活动

如何向用户发布消息';s最近在facebook上使用php进行的活动,php,facebook,Php,Facebook,我是facebook应用程序开发新手。我正在使用以下代码: $attachment = array('message' => "Testing message ", link' => 'http://www.google.com/'); if(!($sendMessage = $facebook->api('/me/feed/','post',$attachment))){

我是facebook应用程序开发新手。我正在使用以下代码:

$attachment = array('message' => "Testing message ",
                    link' => 'http://www.google.com/');
if(!($sendMessage = $facebook->api('/me/feed/','post',$attachment))){
                                 $errors= error_get_last();
                                 echo "Facebook publish error: ".$errors['type'];
                                 echo "<br />\n".$errors['message'];
                                      }'
$attachment=array('message'=>“测试消息”,
链接“=>”http://www.google.com/');
如果(!($sendMessage=$facebook->api('/me/feed/'、'post'、$attachment))){
$errors=error_get_last();
echo“Facebook发布错误:.$errors['type'];
回显“
\n”。$errors['message']; }'

此代码在用户的时间线中发布消息,但我想在其最近的活动中发布消息。

此帖子将自动显示在最近的活动中。本节汇总了各个地方的活动,并由Facebook生成。无法直接发送。

谢谢您的回复。。。但就我而言,这篇文章并没有出现在最近的活动中。。。