Facebook Leaderboards for individual game levels

Hi everyone!

I’m trying to figure out how to go about something and can’t find any info so I figured I’d reach out here.

I have a game in development and would like to have Facebook leaderboards for each level in the game (think Candy Crush style). 

I was hoping that someone could me in the right direction for something like this.  

The flow, as I see it is:

  1. User authorizes app for Facebook.

  2. User starts level.

  3. User completes level.

  4. User score is posted to Facebook.

  5. User’s friends that have scores are pulled from Facebook.

  6. Leaderboard displayed.

  7. User goes to next level, repeat from step 2.

Does this seem like accurate logic for this?  

Any help is appreciated.

Thanks!

I’m interested too, maybe using your own server to get all data

You can use this for posting score on Facebook.

local attachment = {

   score = 15,

   access_token = self.accessToken

}

facebook.request(“me/scores” , “POST”, attachment)

For retrieving all facebook users score you need to use this

facebook.request(appID… “/scores”)

It return json data. you need to parse it

Regards,

S P Technolab Team

Sounds good.  But this would be a single, overall score.  I’m looking to be able to do score posting and comparison on a level by level basis.  How would this apply to something like that?

Thanks!

I’m interested too, maybe using your own server to get all data

You can use this for posting score on Facebook.

local attachment = {

   score = 15,

   access_token = self.accessToken

}

facebook.request(“me/scores” , “POST”, attachment)

For retrieving all facebook users score you need to use this

facebook.request(appID… “/scores”)

It return json data. you need to parse it

Regards,

S P Technolab Team

Sounds good.  But this would be a single, overall score.  I’m looking to be able to do score posting and comparison on a level by level basis.  How would this apply to something like that?

Thanks!