FB墙贴OAuthException

时间:2011-04-27 11:49:32

标签: facebook facebook-php-sdk

我已使用以下代码集

集成了PHP-SDK的Feed帖子
$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);  

有一天,一切都运行良好,但今天它显示以下错误代码。

  

未捕获OAuthException:(#341)Feed   抛出行动请求限制   /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中无法看到用户

1 个答案:

答案 0 :(得分:2)

您的应用似乎已达到互动的极限。

  1. 登录facebook
  2. 访问http://www.facebook.com/insights/
  3. 选择您的应用
  4. 点击API
  5. 查找API Throttling选项卡。
  6. 看看你达到了什么限制。

    要了解如何解决此问题以及究竟是什么导致这一点,您可以在Facebook开发者论坛的这些主题中阅读更多相关内容:

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