开发者

Trying to post Scores and Achievements

开发者 https://www.devze.com 2023-04-12 08:09 出处:网络
I have a problem trying to post Scores and Achievements. I am using an exact copy of the example http://developers.facebook.com/blog/post/539/

I have a problem trying to post Scores and Achievements. I am using an exact copy of the example

http://developers.facebook.com/blog/post/539/

but am get the following errors.

CookieRegister Achievement:
true

Publish a User Achievement
{"error":{"message":"Unsupported post request.","type":"GraphMethodException"}}

Pu开发者_JAVA百科blish a User Score
{"error":{"message":"Unsupported post request.","type":"GraphMethodException"}}

What am I doing wrong?


It's possible you don't have your app configured correctly.

These stories can only be published by apps categorized as ‘Games’ and are only shown to users when playing a game. We intend to broaden the types of apps that can use these new APIs in the near future.

And did you register your achievements with facebook that your app will award?

https://graph.facebook.com/YOUR_APP_ID/achievements?
  achievement=YOUR_ACHIEVEMENT_URL&
  display_order=YOUR_ACHIEVEMENT_DISPLAY_ORDER&
  access_token=APP_ACCESS_TOKEN

Notice the above has YOUR_APP_ID, not a USER_ID. This is to register the achievement.

0

精彩评论

暂无评论...
验证码 换一张
取 消