2010-08-17 26 views
0

Facebook的set_status Facebook的API

$facebook->api_client->status_set('is the Eagle has landed.',''); 

作为测试页面的一部分,而我得到的错误

Call to undefined method FacebookRestClient::status_set() 

请帮忙,谢谢

回答

0

你甚至懒得开放文件并查看可用的方法?

复制/ SDK中粘贴

/** 
    * Sets the users' current status message. Message does NOT contain the 
    * word "is" , so make sure to include a verb. 
    * 
    * Example: setStatus("is loving the API!") 
    * will produce the status "Luke is loving the API!" 
    * 
    * @param string $status    text-only message to set 
    * @param int $uid     user to set for (defaults to the 
    *          logged-in user) 
    * @param bool $clear     whether or not to clear the status, 
    *          instead of setting it 
    * @param bool $status_includes_verb if true, the word "is" will *not* be 
    *          prepended to the status message 
    * 
    * @return boolean 
    */ 
    public function &users_setStatus($status, 
            $uid = null, 
            $clear = false, 
            $status_includes_verb = true) { 

所以,在使用

$facebook->api_client->users_setStatus($status, $uid, $clear, $status_includes_verb); 
+0

我之前已经检查了,和users_setStatus ISN;吨工作。这就是我在这里问的原因。该状态不在Facebook上发布。 – ajayprabhu 2010-08-19 06:16:21

+1

嗯,我向你保证:无论你从已建立的方法调用中得到什么类型的错误,你都不会**通过随机选择一个新的方法名来修复它们。 – 2010-08-19 15:16:50

+0

它来自维客facebook开发者api我的第一个代码,我猜他们不会随机发布在维基上吗? – ajayprabhu 2010-08-21 03:08:30