OAuth& facebook access_token不工作,需要OAuth专家 [英] OAuth & facebook access_token not working, need OAuth expert
问题描述
我已经阅读了1000多个博客,关于在两次呼叫OAuth中,redirect_uri必须是相同的,以获得用户令牌,但是100%的时间,无论我如何格式化URL,都会失败:
I have read the 1000+ blogs about how the redirect_uri has to be the same in both calls to OAuth in order to get a user token, but 100% of the time, regardless of how I format the URL, it fails with:
{
"error": {
"message": "Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request",
"type": "OAuthException",
"code": 100
}
}
我一直很细心确保两个电话中的URL完全相同。我的网址必须有?在它,我已经尝试用%3f替换,但没有帮助。必须有其他可以引起这个错误的东西,我需要学习什么呢?
I have been meticulous in making sure that the URLs in both calls were the exact same. My URL has to have a ? in it and I have tried replacing it with %3f but that didn't help. There has to be something else that can cause this error, I need to learn what that might be?
在过去的一个月里,这似乎让我失望了。我们在7月下旬做了一个节目,事情工作正常(因为它是不同的服务器,所以显示的基址不同)。可以这样的URL是这样的格式:
This seemed to break for me over the past month sometime. We did a show in late July and things worked fine (had a different base URL for that show since it was a different server). Could it be that the URL is of this format:
someprestuff.morestuff.mainurl.com?prm=value
Facebook的网址是否有太多的零件可以接受?
Are there too many "parts" to the URL for Facebook to accept it?
我正在寻找替代的东西来寻找。
I'm looking for alternate things to look for.
推荐答案
url应该是一样的,它必须逃脱在url中,它必须如下所示:
The url should be the same and it has to be escaped. In the url it has to look like this:
http%3A//someprestuff.morestuff.mainurl.com%3Fprm%3Dvalue
这篇关于OAuth& facebook access_token不工作,需要OAuth专家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!