Jump to content

Using Facebook for highscores


Sammi3
 Share

Recommended Posts

Yeah, it should be no prob doing that. I did something similar with a game I made in Unity a few years ago. Here's a post I made on it, http://blog.sokay.net/2013/08/25/facebook-high-scores-in-unity-with-prime31-plugins/ .

 

I think the first few steps would be the same. Set up your app and whatnot. FB has a javascript API that you should be able to use to make calls to the FB api. I'm not sure if there are any kinds of limitations with the Javascript API since I could imagine there might be security issues with making calls from different domains but you can look into it!

 

Once your user is autheticated by logging into their FB acct, you can save a score for the game. And you can pull up that score for all of their friends. When I used it, you couldn't have multiple high score lists (like level 1, level 2, etc.). But I'm not sure if they've improved on that since then.

 

Good luck!

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...

what i did for my game, was to integrate facebook high scores into the end part of the game, immediately when the hero loses. That way, I get to save on API calls, as well as make a more efficient application.

 

Per my experience, there's no need for the app to be a FB canvas game. Any FB app will work with the highscore api.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...