if($user !== 0)
{
$info = $facebook->api('/me?fields=id,name,email,work');
$acces = $facebook->getAccessToken();
try
{
$publishStream = $facebook->api("/$user/feed", 'post', array(
'message' => "Hello {$info['name']}",
'name' => 'Test Run',
'description'=> 'This post was sent automatically',
'access_token' => $acces
));
?>
<br />
<div><?php echo $publishStream; ?></div>
<br />
<?php
}
catch (FacebookApiException $e) {
$result = $e->getResult();
?>
<div>failed : <?php echo $result; ?></div>
<?php
}
当我运行facebook应用程序时,这是我用来向我的墙发送虚拟帖子的代码但是用户的帖子的帖子失败并且返回的错误是“数组”,是否有任何特别错误?