OAuthException 2500(未知路径组件)尝试在Facebook注册成就时 [英] OAuthException 2500 (Unknown path components) when trying to register Achievement in Facebook
问题描述
我正在为一个应用程序注册一个Facebook开放图表成就。我获得了应用访问令牌,并使用开放图表API资源管理器发布以下请求:
I am trying to register a Facebook open graph achievement for an app. I obtain the app access token and post the following request using open graph API explorer:
(请注意,上述的应用ID不是真实的)。但是,我收到以下回复:
(note that app ID an access token above are not the real ones). However, I get the following response:
{
"error": {
"message": "Unknown path components: /achievements&achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZTdleEZvOUE/brags/fb_achive_100_words.html&display_order=100&access_token=752901688356092|pPwn52AvX-Pkj2n8Tavopew5Rav",
"type": "OAuthException",
"code": 2500
}
}
我已将该应用程序注册为游戏类型的应用程序,并使用开放式图形调试器验证了成就网址(显示成就并报告了一切都很好)。我还尝试了上述没有包含在访问令牌中的app-ID。我可以丢失什么?
I have registered the app as a games type app and I have verified the achievement URL using open graph debugger (it shows the achievement and reports everything is fine). I also tried the above without the app-ID included in the access token. What could I be missing?
推荐答案
您的URL组合方式有错误。第一个GET参数应该与基本URL分开一个?
,而不是&
。尝试以下内容:
You have an error in the way your URL is composed. The first GET parameter is supposed to be separated from the base URL by a ?
, not a &
. Try the following :
这会引发另一个错误,但也可能是由一个丢失的AUTH令牌引起。你为什么不看看他们建议你这样做?您可能需要检查成就的设置。
This throws another error, but that might also be caused by a missing AUTH token. Why don't you have a look at how they suggest you do it? You probably need to check the setup of the achievement.
这篇关于OAuthException 2500(未知路径组件)尝试在Facebook注册成就时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!