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
Related
In 2016, there was an app "Being" that performed this function:
https://www.buzzfeednews.com/article/brendanklinkenberg/this-app-shows-you-what-other-peoples-instagram-feed-looks-l
"Being is an app that lets its users see what Instagram is like for someone else. You log in with your own Instagram account, then choose who you want to be. It could be a friend, it could be a partner, it could be a celebrity, it could be a presidential candidate — anyone with a public account on the photo-sharing service can be accessed. You can even click a button and parachute into a completely randomly chosen person's feed.
The app uses Instagram's API to pull all of the "Following" data from a given account and organize it into a feed. So, if you've ever been curious about what Taylor Swift actually sees when she logs into Instagram — minus the many thousands of notifications from adoring fans — this is the app for you."
Unfortunately, Instagram has removed data access from the app, so it's no longer available. It annoys me that Instagram restricts access to its API.
Does anyone know how to recreate this function?
Can I do this in the Instagram developer environment?
It has to be possible - there has to be a way around it.
One idea I have is instead of using Instagram's API, the content from all of a user's followings is parsed.
noob to iOS and Game Dev
I am writing a simple game which has incremental levels (flow chart below). Only thing that I want to do it save information like "Last level passed" on to the cloud.
I would like it so that whether the user signs in to my app from iOS, Android, Web (I'm starting off with iOS app only) - always goes back to the right level.
My fundamental architecture question - should I saving this information in somewhere on Facebook API/SDK or in my own Cloud Backend? (I'm using Parse as my backend)
I would save it into Parse so that you are not tied to Facebook for your users. I know many people do not want to connect their Facebook accounts to apps, etc. so this way you can have one solution for everyone.
Also, by using your own backend you can use Facebook a way for users to log in and then later allow them to log in via twitter, etc. and your game would still work as it should regardless of how the user chose to create an account.
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.
I wanted to confirm if this is possible. I want to publish "User To User Requests" directly to the open graph action with my own UI (specifically the friend selector).
My friend selector does follow the platform guidelines (ie do not allow users to select all users at once). My question is that can I publish these requests directly without having to use any of the FB UIs including the request dialog preview (we are going to show our own preview).
This is to be built on iOS. The primary reason we want to use our own UI is because our design team feel that the popups hinder UX on mobile and they want to make it seamless. Their reasoning is a design issue that probably up for another discussion all together, but what I want to know is about using the requests api without using the native FB ui.
The answer is simply, YES, yes you can do this and then post the request to each friend using the id's of the friends selected by the User. All you have to do is just retrieve the friend list retrieve selected user ids and POST to them the requests.
I'm toying around with the Facebook APIs for a game I'm developing as a hobby project, after reading through the facebook SDK documentation, I'm still a little unclear as to what is required for developing games on the platform.
This is what I have :
Native iOS application
All game data is stored locally (levels, characters, items)
I don't have any backend servers, the game is completely client side
only.
I want to make the game "social" by adding achievements/friends lists, the facebook API seems like a good candidate for doing so
This is what I'm trying to achieve :
SSO - Hoping to make use of the facebook SSO for accounts so I don't
have to implement my own authentication etc. This saves time in not having to develop it myself.
Scores - when a particular event happens in my game it will award
some points to the user, I'm looking to use the scores API for
this.
Achievements - after the user has earned a certain amount of points,
or another predefined event has occurred, an achievement will be
granted, using the achievements API.
Question : Can I use the scores and achievements APIs from facebook without having my game deployed onto a backend server?
No, two reasons:
You need a URL to host the metadata for your achievements
The scores and achievements need to be posted using the App Access Token, and distributing that in your client app would allow anyone decompiling the app to change any of your app's settings, make posts on behalf of any of the app's users, redirect your traffic to another site, etc.
At the least, you need static pages describing the achievements, and a callback script you can hit from your mobile app which triggers the publishing to Facebook of the Scores and Achievements
Update 2012-09-06: it's no longer necessary to use the app access token to post scores and achievements, so you could use scores in a mobile app, but you still need a website to hold the achievement metadata
I found a good answer for this recently.
There's no point in duplicating, so please see the answer here:
Using Facebook Achievement API in Android
(It is relevant for iOS as well as any other platform)