将照片发布到测试用户时发生意外错误 [英] Unexpected Error when posting photos to Test Users

查看:55
本文介绍了将照片发布到测试用户时发生意外错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个非常奇怪的错误(可能是一个错误).我正在尝试将照片发布给测试用户".我提出的第一个请求可以顺利通过,并且照片会被发布,但是我提出的第二个,第三个等请求却出现以下错误:

I am experiencing a very strange error (could be a bug). I am trying to post a photo to a TEST USER. The first request I make goes through perfectly and the photo gets posted, but the 2nd, 3rd, etc. requests I make I get the following error:

发生了意外错误.请稍后重试您的请求."

"An unexpected error has occurred. Please retry your request later."

重要的是要注意,这只是测试用户的问题.普通用户可以完美地处理任何数量的请求.还需要注意的是,这与TEST USERS在大约一两个星期前针对多个请求完美地结合在一起.

It is important to note that this is only an issue with TEST USERS. Normal users work perfectly for any number of requests. It is also important to note that this worked perfectly with TEST USERS for multiple requests about a week or two ago.

我正在使用PHP SDK,并使用以下代码发布照片:

I am using the PHP SDK and post the photo using the following code:

// Create tag array
$tagArray = array(array('tag_uid' => $posterUid, 'x' => 0, 'y' => 0));
// Post the photo
$fb->setFileUploadSupport(true);
return $fb->api(
    "/$posterUid/photos",
    'POST',
     array(
        'access_token' => $accessToken,
        'message' => $message,
        'source' => '@' . $source,
        'tags' => $tagArray
    )
);

我尝试过发布不同的照片,还尝试删除并重新创建测试用户",但是问题仍然存在.

I have tried posting different photos and also tried deleting and recreating TEST USERS, but the problem persists.

推荐答案

我遇到了类似的问题,这使我发疯.我终于可以通过在开发人员应用程序上关闭沙盒"模式来使其工作.

I had a similar problem and it was driving me crazy. I was finally able to get it to work by turning off 'sandbox' mode on my developer application.

我不知道为什么会有所不同.但这为我解决了问题.希望这对某人有帮助.

I have no idea why this made a difference. But it fixed the problem for me. Hope this helps someone.

这篇关于将照片发布到测试用户时发生意外错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆