2011-04-27 103 views
0

我已經通過下面一組代碼FB牆上張貼OAuthException

$attachment = array(
    'access_token' => $accestoken, 
    'message' => "Favorite Restaurant is ".$business['name'].$business['location']['city']."-What is yours? ", 
    'name' => $business['name'], 
    'link' => $business['personal_url'], 
    'description' => "<b>myTaste || real restaurant reviews, share your taste on myTaste</b>", 
    'picture'=> "http://mysite.com/images/gui/header/mytaste.gif" 
); 
$facebook->api("/".$usid."/feed", "post",$attachment); 

一切爲一天的工作極大的整合了新聞發佈PHP-SDK,但今天它顯示下面的錯誤代碼。

Uncaught OAuthException: (#341) Feed action request limit reached thrown in /hsphere/local/home/mysite.com/include/3rdparty/facebook-php-sdk/src/facebook.php

未捕獲OAuthException:(#210)用戶不可見的/hsphere/local/home/mysite.com/include/3rdparty/facebook-php-sdk/src/facebook.php

+0

將您的代碼放在側面代碼塊中,以便我們可以更輕鬆地閱讀它。 – rzetterberg 2011-04-27 11:53:29

回答

2

拋出你的應用似乎已經達到了交互的極限。

  1. 登錄Facebook的
  2. 訪問http://www.facebook.com/insights/
  3. 在API選擇您的應用
  4. 點擊
  5. 查找API節流標籤。

看看你已經達到了什麼限制。

要找出如何解決這一問題和到底是什麼導致這個你可以在Facebook的開發者論壇,這些線程閱讀更多關於它:

http://forum.developers.facebook.net/viewtopic.php?id=95309 http://forum.developers.facebook.net/viewforum。 php?id = 24

+0

你能告訴我我應該在哪裏檢查這個,我在我的applciation中找不到像這樣的任何標籤。 – Anandhan 2011-04-27 12:02:43

+0

請參閱我的編輯進行澄清。 – rzetterberg 2011-04-27 12:09:51

+0

好的,謝謝FYI Ancide – Anandhan 2011-04-27 12:50:12