我无法注册任何成就。我一直得到以下内容:
{"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时,我清楚地看到了meta标签中的设置。我的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>"
}
抓取的网址没有返回任何内容......任何人都有任何想法?我还尝试在Open Graph设置中添加Game Achievement对象,并启用和禁用Sandbox Mode / Social Discovery的每个组合。
答案 0 :(得分:1)
你必须包括游戏:积分元标记来完成你的游戏。快乐