Php 未捕获的OAutheException:发生未知错误。错误的JSON签名

Php 未捕获的OAutheException:发生未知错误。错误的JSON签名,php,facebook,sdk,Php,Facebook,Sdk,我在几周前创建了这个应用程序,一切正常。昨天,我又创建了一个应用程序,与前一个类似,已更改appid,代码中有密码,我发现以下错误: Fatal error: Uncaught OAuthException: An unknown error has occurred. thrown in /home/x/ftp/xz/src/base_facebook.php on line 1325 我的代码: require 'src/facebook.php'; require 'config.p

我在几周前创建了这个应用程序,一切正常。昨天,我又创建了一个应用程序,与前一个类似,已更改
appid
,代码中有密码,我发现以下错误:

Fatal error: Uncaught OAuthException: An unknown error has occurred.
thrown in /home/x/ftp/xz/src/base_facebook.php on line 1325
我的代码:

 require 'src/facebook.php';
 require 'config.php';
 $user = $facebook->getUser();

if ($user) {
  try {
    // Proceed knowing you have a logged in user who's authenticated.
    $user_profile = $facebook->api('/me');
    $friends = $facebook->api('/me/friends');
    $usertoken = $facebook->getAccessToken();
  } catch (FacebookApiException $e) {
    error_log($e);
$user = null;
 }
} 
  $ret_obj = $facebook->api('/me/photos', 'POST', array(
                                         'image' => '@' .realpath('generated/'.$filename),
                                         'message' => $post_message,
                                         'tags' => $tagi
                                         )
                                      );
如果我打印
\r$facebook
我可以看到空的

var:      [accessToken:protected] => 

我正在
apps.facebook.com/xxx

上使用我的应用程序。检查这个我希望对你有帮助@DeepakGoswami我在3个不同的用户和相同的用户上测试了它。另外,请检查你为此创建的新FB应用程序不应该处于沙箱模式,因为若它处于沙箱模式,那个么它将无法工作。@DeepakGoswami应用程序处于联机状态