Facebook实时更新:(#2200)回调验证失败,代码为2200 [英] Facebook Real-time Updates: (#2200) callback verification failed, code 2200

查看:110
本文介绍了Facebook实时更新:(#2200)回调验证失败,代码为2200的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 https: //developers.facebook.com/docs/reference/api/realtime/ 。当我回到订阅验证时,我正在努力奋斗。我设置了一个接受GET和POST请求的回调服务器。我通过向其发出卷曲请求来验证服务器的工作原理。

I am trying to get realtime updates from facebook for my application as documented in https://developers.facebook.com/docs/reference/api/realtime/. I am struggling now when it comes back to the Subscription Verification. I have set up a callback server which accepts both GET and POST requests. I verified that the server works by making curl requests to it.

但是,尝试创建一个发出POSt请求的订阅时,我会收到此错误

However, I stil get this error when attempting to create a subscription issuing the POSt request below


{error:{message:(#2200)回调验证失败:
,type:OAuthException,code:2200}

{"error":{"message":"(#2200) callback verification failed: ","type":"OAuthException","code":2200}

从我在文档和其他线程中读到的内容,我认为这意味着对我的回调URL的单个GET请求失败。 GET和POST请求确实不会要求回调URL。我想这个Facebook被阻止访问端点。但是,我可以通过使用auth对话框(https://developers.facebook.com/docs/reference/dialogs/oauth/)在同一台服务器上传回回调URL的用户身份验证。服务器运行http(现在)。

From what I read in the documentation and other threads, I assume that this means that the single GET request to my callback URL fails. The callback url does not get requested by neither GET nor POST requests indeed. I suppose that facebook is somehow blocked from accessing the endpoint. However, I am able to auth as a user using the auth dialog (https://developers.facebook.com/docs/reference/dialogs/oauth/) where I pass a callback url on the same server as well. The server runs http (for now).

这是我用来发布订阅的卷曲。主机文件有一个条目将dev.minggler.com重定向到localhost =>(127.0.0.1 dev.minggler.com)

This is the curl I am using to post the subscription. Host file has an entry to redirect dev.minggler.com to localhost =>( 127.0.0.1 dev.minggler.com)

curl -XPOST 'https://graph.facebook.com/256139341164822/subscriptions?callback_url=http%3A%2F%2Fdev.minggler.com%3A3000%2Ffacebook%2Frealtimeupdates&object=user&fields=friends&verify_token=abcd123&access_token=$MYTOKEN'

有人可以帮助我吗?

推荐答案

终于找到了问题。服务器从外部无法访问。解决问题解决问题

finally found the problem. the server wasn't reachable from outside. resolving it solved the problem

这篇关于Facebook实时更新:(#2200)回调验证失败,代码为2200的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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