I'm making a new game right now where you can save your highscore, but I wobdered if I could implement a Facebook leaderboard. So the user could see their friend and see what their highscores are. Is this possible? Well, I saw this in different apps like Subway surfers from kiloo and 2048 from ketchapp. I didn't code anything because I don't how to do it. And I searched the facebook developer page and they said you have to do it with the graph API with scores or something. However, Hope you guys can help me out.
Best Regards.
Tom de Ruiter
There's the Facebook Scores API, the documentation is at this link
https://developers.facebook.com/docs/games/scores/
The downside is that Facebook will only store 1 score for a player, when you update it, you won't be able to see any previous scores (Of course, unless you set your own servers to do the job).
Also, there's no easy recipe to work with the Graph API, you just have to follow a few tutorials and you'll be in good shape to work with scores.
Related
I would like to use the Facebook Scores API to make a social leaderboard for my iOS game.
From the documentation, I saw that it would require to request a publish permission so that I could post scores. The thing is that I don't want to publish to the player's wall (I simply think it's invasive), I just want to use the API backend to store the score, but everything I saw involved posting to the user's wall in order to write the score on the backend.
How should I proceed to only write the score without posting it into facebook?
If this thing exists, can I avoid requiring the publish permission?
Thanks
If you simply use the Score API as intended, the user will have the option of choosing whether to give your app the visibility permissions like "private, friends, public, etc". That lets the user decide what is invasive rather than you deciding for them.
Here is a related stackoverflow question with the opposite question, showing how users have control over what is shared with the API:
Facebook scores blocked by "only me" visibility
My question is simple and vague. I can't get started in google play games. I need to create an application (in this case is a chess game that works in iOS and android). I've been doing the google tutorials but I can't create a game of my own.
I've done this quick start.
I can log in with my account to the game I've created and configured here.
The status of my game is "Ready to Test."
This is a four man group project and I'm in the iOS development. I'm new to apple devices and objective C, so it complicates my life a little.
For the first app I'm trying to do anything at all, like a tic-tac-toe game or a "chat game."
I've searched for a tutorial that guides me step-by-step so I can get it.
Can anyone help me here please?
Thank You!
What do you mean by "can't get started"?
Now your status is get started, you need to:
* Add your account as the tester account in the game service console so that you can sign in with this Google account when testing your game.
Implement the very basic code to access game service (sign in, leaderboard and/or achievements, etc.), which I assume you have already done if you have followed the quick start.
Test your game. You can provide a button in the game UI and when you click that button, perform the sign-in process. If you have already implement the leaderboard/achievements, you can also check them.
I have a simple iOS app, which contain a score system.
I want to upload the score to Facebook leaderboard and compare with friends.
How can I do it?
I have no experience in this category.
So please help me.
More detail:
I have completed a simple ios game, which would save the best score got by player.
I want to create a leaderboard of the score on facebook,like game center.
so the score can be upload to the leaderboard shown on facebook.
Have a look here https://developers.facebook.com/docs/games/mobile/ios-tutorial/#opengraph for an introduction of the integration of iOS games and Facebook, and here https://developers.facebook.com/docs/games/scores for the explanation how to use the OpenGraph Scores API.
There is also an Achievements API which yoou could use: https://developers.facebook.com/docs/games/achievements/
As far as I know, results can only be queried for the User who gave the Access Token, respectively the User's friends. So, an overall leaderboard cannot be generated via these mechanisms.
Additional helpful links:
https://developers.facebook.com/docs/games/mobile/bestpractice
https://developers.facebook.com/docs/games/opengraph/
https://developers.facebook.com/docs/graph-api/reference/app/#scores
Im very new to Xcode and i'm trying to create a somewhat Social Networking app. At this point i'm not looking for it to be its own app but I want the app to have the ability to let the User sign into their Facebook Account and than Post a Video from the Camera Roll to their wall. I know it sounds simple but Ive look and all i can get are extremely confusing answers that don't make any sense.
Thanks in Advance.
Looking for
1 allow Facebook Login
2) Post Video from Camera Roll to their facebook.
If possible It would be cool to have a thumbnail of the video before they post it. Kind of like instagram. Thanks!
First off, you need to create an app for your iOS app on Facebook. Then use the tokens or keys they provide you with, in order for your app to be able to do anything with Facebook.
Facebook has pretty good instructions on how to set up Facebook login on your app. You can find detailed, step-by-step instructions here. Depending on what type of login you need, you can choose a suitable option.
I have not posted actually files so far onto a Facebook feed/wall. But I have set up sharing of posts. You can find instructions for that here.
Hope this helps.
I am a little new to the facebook SDK so please bear with me on this. I have been searching for hours and have not been able to find anything relating to my problem.
I have implemented the facebook sdk for iOS and am in the process of adding scores.
User authentication is working fine, achievements are working fine, and it appears to submit the scores fine as well with the following response:
{
"FACEBOOK_NON_JSON_RESULT" = true;
}
and there are no errors returned. This is a native app and while it appears to be posting fine, no stories are showing up. Any idea why this would be? I want to make sure that it is working correctly prior to submitting the new version of my game.
The aim of the Graph API to make stories and just sending a score is not a story.
The scores will show up if the user passes the user's friend (passing story) or made a high score (high score story).
You can check the score feed in the users's Activity Log.
WARNING! It seems that FB filter the high score story frequency, but the mechanism and timing is not public, so testing it too frequently could cause missing stories.