0

我正在尝试在 Facebook 上注册成就。我正在注册:

url: http://mydomain.com/achievement.php?gca=gc2 
display_order: 300

但我得到错误:(#3502) Object at achievement URL is not of type game.achievement

在我的网址中,我得到了:

<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# game: http://ogp.me/ns/game#"> <title>Achievement</title> <meta property="og:type" content="game.achievement" /> <meta property="og:title" content="a" /> <meta property="og:url" content="http://mydomain.com/achievement.php?gca=gc2" /> <meta property="og:description" content="x" /> <meta property="og:image" content="http://avatars.gg.pl/1" /> <meta property="game:points" content="25" /> <meta property="fb:app_id" content="MY-APP-ID" /> </head> <body>TODO</body> </html>

怎么了?我认为错误说明了其他事情......

4

1 回答 1

4

我注意到它给出了这个错误有几个不同的原因,这些都与不是“game.achievement”类型的 URL 无关。

最明显的一种情况是 URL 没有指向正确的位置。通过将其粘贴到浏览器中来验证这一点(在您的示例中为 http://mydomain.com/achievement.php?gca=gc2。)

我发现的另一个原因是应用程序没有在应用程序设置中设置其“应用程序域”。并非所有应用都需要此功能,仅适用于某些应用。通过在对象调试器中输入 URL 并输入您的成就的 URL,我找到了一个提示(因为该错误显然没有任何帮助) 。

于 2012-02-08T20:22:13.273 回答