致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在 [英] Fatal error: Uncaught OAuthException: (#803) Some of the aliases you requested do not exist

查看:468
本文介绍了致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

致命错误:未捕获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:

这篇关于致命错误:未捕获OAuthException:(#803)您请求的某些别名不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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