Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use the Scores & Achievements API from Facebook solely from a native mobile application?

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 :

  1. Native iOS application
  2. All game data is stored locally (levels, characters, items)
  3. 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?

like image 550
Jimmy Avatar asked Jun 11 '12 20:06

Jimmy


People also ask

Why would you use at score?

Statisticians and students use the t-score in a t-test to do hypothesis testing when they compare two or more sets of data or multiple pieces of data within the same set. Since t-scores describe similarity in terms of standard deviations, a smaller t-score means similar data and a larger one means more variation.

How do you know when to use at score?

Like z-scores, t-scores are also a conversion of individual scores into a standard form. However, t-scores are used when you don't know the population standard deviation; You make an estimate by using your sample. T = (X – μ) / [ s/√(n) ].

How do you use at score?

Calculating a t score is really just a conversion from a z score to a t score, much like converting Celsius to Fahrenheit. The formula to convert a z score to a t score is: T = (Z x 10) + 50. Example question: A candidate for a job takes a written test where the average score is 1026 and the standard deviation is 209.

How does test score can be interpreted?

Three measures of central tendency commonly used to interpret test scores are the mode, median, and mean. The simplest measure of variability is the range, the difference between the highest and lowest scores in the distribution. The standard deviation is the most common and useful measure of variability.


1 Answers

No, two reasons:

  1. You need a URL to host the metadata for your achievements
  2. 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

like image 62
Igy Avatar answered Dec 09 '22 03:12

Igy