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

 ̄綄美尐妖づ 提交于 2019-12-04 03:04:06

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

SirKnigget

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!