我正在尝试注册Facebook开放图表的成就,但它确实没有用。
获取这样的应用访问令牌:
https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=SECRET&grant_type=client_credentials
HTML页面如下所示:
<html>
<head>
<meta property="og:type" content="game.achievement"/>
<meta property="og:title" content="TITLE"/>
<meta property="og:description" content="DESCRIPTION"/>
<meta property="og:url" content="URL/testAchivement.html"/>
<meta property="og:image" content="URL_TO_IMAGE"/>
<meta property="game:points" content="10"/>
<meta property="fb:app_id" content="APP_ID"/>
<title>ACHIEVEMENT!</title>
</head>
<body>
</body>
</html>
我用这个:
https://graph.facebook.com/APP_ID/achievements?achievement=MYSERVER/testAchivement.html&display_order=2&access_token=APP_ACCESS_TOKEN
并得到此回复:
{
"data": [
]
}
使用Facebook调试工具时没有错误。
请帮助,谢谢!