Sammi3 Posted September 12, 2015 Share Posted September 12, 2015 If I use Facebook to store highscores and show highscores between friends, does it have to be a Facebook canvas game? Or can I still just host it myself but use their API? Quote Link to comment Share on other sites More sharing options...
Son of Bryce Posted September 18, 2015 Share Posted September 18, 2015 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! Quote Link to comment Share on other sites More sharing options...
SEOKavya Posted October 14, 2015 Share Posted October 14, 2015 Facebook's Scores API will return a list of your friends that are playing, in order of rank. this makes easy to hit the ground running with some social features as facebook allow you to save high scores for your app without needing any backend. Quote Link to comment Share on other sites More sharing options...
seeker Posted November 1, 2015 Share Posted November 1, 2015 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.