我已经创建了一个应用程序,用户可以发布消息到自己的墙上! 这是我的代码张贴到Facebook墙 - PHP
try {
$facebook = new Facebook(FB_APIKEY, FB_SECRET);
$facebook->api_client->session_key = FB_SESSION;
$fetch = array('friends' =>
array('pattern' => '.*',
'query' => 'select uid2 from friend where uid1={$user}'));
$message = 'Hello There ...';
if ($facebook->api_client->stream_publish($message)) //149th line
echo 'message posted successfully';
} catch(Exception $e) {
echo $e . '<br />';
}
它返回一个错误致命错误:在/home/webshine/public_html/tutorials/fb/example.php调用未定义的方法stdClass的:: stream_publish()上线149 是什么错了?
我已经阅读计算器类似的问题,但没有他们的帮助! – Sourav 2011-04-07 07:36:49