尝试在 Facebook 中注册成就时出现 OAuthException 2500(未知路径组件) [英] OAuthException 2500 (Unknown path components) when trying to register Achievement in Facebook

查看:27
本文介绍了尝试在 Facebook 中注册成就时出现 OAuthException 2500(未知路径组件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为应用注册 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:

https://graph.facebook.com/752901688356092/achievements&achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZUE/braach0f18luck.com/zh_CN&ach_1&htl_1&0f_100000000000000000000000000000c752901688356092|pPwn52AvX-Pkj2n8Tavopew5Rav

(请注意,上面的访问令牌的应用 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
  }
}

我已将该应用注册为游戏类型应用,并且已使用开放图调试器验证了成就 URL(它显示成就并报告一切正常).我还尝试了上面没有包含在访问令牌中的应用程序 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 :

https://graph.facebook.com/752901688356092/achievements?achievement=https://googledrive.com/host/0B1R_JKMKJc2KbkNqZOamp0gs_orders&htm_1&0fc2KbkNqZOmp0gs&752901688356092%7CpPwn52AvX-Pkj2n8Tavopew5Rav

这会引发另一个错误,但这也可能是由于缺少 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.

这篇关于尝试在 Facebook 中注册成就时出现 OAuthException 2500(未知路径组件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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