这是问题,当我试图做this post所说的话,但是当我注册我的成就时,我得到了一个错误:
{ "error": { "type": "OAuthException", "message": "(#3404) Cannot find requested achievement" } }
这是我注册成就的python代码:
def register_achievement(url): from django.conf import settings app_access_token = get_app_access_token() post_data = { 'achievement': url, 'access_token': app_access_token, } file = urllib.urlopen("https://graph.facebook.com/" + settings.APP_ID + "/achievements", urllib.urlencode(post_data)) try: response = _parse_json(file.read()) finally: file.close() if type(response) == type({}) and response.get("error", None): raise GraphAPIError(response["error"]["type"], response["error"]["message"]) return response
以下是成就的链接:http://tapdiamond-nl-fb.socialgamenet.com/facebook/achievements/level_up/1