可以使用得分&来自Facebook的成就API仅来自本地移动应用程序? [英] Is it possible to use the Scores & Achievements API from Facebook solely from a native mobile application?

查看:87
本文介绍了可以使用得分&来自Facebook的成就API仅来自本地移动应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在玩Facebook的游戏,我正在开发一个喜爱的项目,在阅读了facebook SDK文档后,我仍然不清楚在平台上开发游戏所需要的东西。



这是我所拥有的:


  1. iOS版本应用程序

  2. 所有游戏数据都存储在本地(级别,字符,项目)

  3. 我没有任何后端服务器,游戏完全是客户端
    只需要。

我想通过添加成就/朋友列表使游戏社交,Facebook API似乎是一个很好的候选人这样做



这是我要实现的:




  • SSO - 希望使用Facebook SSO进行帐号管理,所以我不需要
    来实现自己的身份验证等等。这样可以节省自己开发自己的时间。

  • 分数 - 当我的游戏中发生特定事件时,会向用户授予
    一些积分,我希望使用分数API
    这个。

  • 成就船尾呃用户已经获得了一定数量的积分,
    或另一个预定义的事件发生,成就将
    授予,使用成就API



问题:我可以使用分数并且没有将我的游戏部署到后端服务器上的Facebook的成就API?

解决方案

不,两个原因: / p>


  1. 您需要一个URL来承载您的成就元数据

  2. 成绩和成就需要使用App Access Token进行发布,并在客户端应用程序中进行分发,允许任何人反编译应用程序来更改任何应用的设置,代表任何应用的用户发布帖子,将流量重定向到其他站点等

至少需要描述成就的静态页面和回调您可以从您的移动应用程序中触发脚本,触发发布到Facebook的成绩和成就



更新2012-09-06 :它的<一个href =https://developers.facebook.com/blog/post/2012/09/05/platform-updates--operation-developer-love/ =nofollow>不再需要使用应用访问令牌发布分数和成就,因此您可以在移动应用中使用分数,但您仍然需要一个网站来保存成就元数据


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?

解决方案

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

这篇关于可以使用得分&amp;来自Facebook的成就API仅来自本地移动应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆