0

I have registered an achievement for my game in Facebook. But could you please help me to sort out how to post that achievement of Facebook using AS3 API?

Is it just like

var wallPostParams:Object ={
achievement :"achievemt url",
access_token :"xxxxxxxxxxxxx"
};

Facebook.postData('me/achievements/', postToWallCompleteHandler, wallPostParams);

Is this way to post it?

Jason Sturges
  • 15,855
  • 14
  • 59
  • 80

2 Answers2

0

Follow the Achievements Documentation Facebook provides to get your achievement working. You first have to register the achievement with your app, and then post the achievements using /{user_id}/achievements. You will need to ask the user for the publish_actions permission.

You will get errors if the achievement isn't registered.

Niraj Shah
  • 15,087
  • 3
  • 41
  • 60
  • Thanks for the answer, i have already registered my achievement successfully, and made a post successfull using graph api explorer. but the problem is, im using as3 facebook api for my game and i try to post my achievment using the above code it says wallpost was unsuccessful. – renjith abby Jun 01 '12 at 11:15
0
var method:String = facebookSession.uid+"/achievements"
var wallPostParams:Object ={
achievement :"achievemt url",
access_token :"xxxxxxxxxxxxx"
};

Facebook.postData(method, postToWallCompleteHandler, wallPostParams);

In brief, just replace the "me" by the user Id

Yakudoo
  • 16