1

我一直无法注册任何成就。我不断收到以下信息:

{"error":{"message":"(#3502) Object at achievement URL is not of type game.achievement","type":"OAuthException","code":3502}}

当我通过 linter 运行我的 URL 时,我得到:

Open Graph Warnings That Should Be Fixed

Inferred Property:  The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property:  The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.

虽然当我自己加载 URL 时,我清楚地看到了元标记中设置的那些。我的 HTML 看起来像:

<html>
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# game: http://ogp.me/ns/game#">
  <meta property="fb:app_id"      content="<MY_APP_ID>" /> 
  <meta property="og:type"        content="game.achievement" /> 
  <meta property="og:url"         content="http://<MY_DOMAIN>/ach10.html" /> 
  <meta property="og:title"       content="Title" /> 
  <meta property="og:description" content="Description" /> 
  <meta property="og:image"       content="http://placekitten.com/g/200/300" />
</head>
<body>
Hmm..
</body>
</html>

同样有趣的是,图形 API 将其视为:

{
   "url": "http://<MY_DOMAIN>/ach10.html",
   "type": "website",
   "title": "http://<MY_DOMAIN>/ach10.html",
   "updated_time": "2012-03-09T19:49:14+0000",
   "id": "<ID>"
}

并且抓取的 URL 没有返回任何内容……有人有什么想法吗?我还尝试在 Open Graph 设置中添加游戏成就对象,并启用和禁用沙盒模式/社交发现的每种组合。

4

1 回答 1

1

您必须包含 game:points 元标记才能完成您的 game.achievement

于 2012-12-14T23:01:32.007 回答