致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在 [英] Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist
问题描述
致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在:0_309479102458745抛在/base_facebook.php第1039行
Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist: 0_309479102458745 thrown in /base_facebook.php on line 1039
我的应用程序工作正常,然后突然有很多用户收到这个错误(除了0_309479102458745有所不同)。
My app was working fine and then suddenly many users are gettings this error (with the exception of 0_309479102458745 varying somewhat).
我将其更改为将其视为varchar,并遵循所有建议这里列出了 Facebook PHP抛出异常(#803)您请求的某些别名不存在。
I changed it to treat them as varchar and followed all the suggestions listed here Facebook PHP throwing exception "(#803) Some of the aliases you requested do not exist".
这里是导致它的代码:
$ result = $ facebook-> api('/ me / feed /',array('access_token'=> $ facebook-> access_token,'limit'=> 50)); //获取帖子
foreach($ result ['data'] as $ posts)
here is the code causing it: $result = $facebook->api('/me/feed/', array('access_token' => $facebook->access_token,'limit'=>50)); //get posts foreach($result['data'] as $posts)
我不知道我应该从哪里开始排除故障
I'm not sure exactly where I should begin troubleshooting this since it started out of nowhere.
感谢您的帮助!
推荐答案
0_309479102458745将无法正常工作,因为0不是有效的用户ID。
0_309479102458745 won't work because 0 isn't a valid user ID.
ID的格式是用户或页面ID,后跟帖子ID;您不应该从Feed中看到0_ {post ID}:
That format of ID is a User or Page ID followed by the post ID; you should never be seeing 0_{post ID} coming back from the feed:
- 如果您可能是API中的错误 - 您可以在这里提交: https://developers.facebook.com/bug
- 如果您手动构造该值,可能是这样做错误。
这篇关于致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!