2010-08-17 3 views
0

У меня естьfacebook set_status facebook апите

$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

+1

Ну, я обещаю вам это: независимо от того, какие ошибки вы получаете от установленного вызова метода, вы ** никогда не исправите их, просто случайно выбрав новое имя метода. –

+0

его от wiki facebook разработчик api мой первый код, я думаю, они не случайно публикуют в wiki правильно? – ajayprabhu

Смежные вопросы