I built an IOS app and using the facebook login, but if I were to use php to extract data like user photos, friends list, do I have to get the user to approve on my web again or one approval will allow the logins to be done cross platform for web, ios & android?
1条回答 默认 最新
- dstd2129 2014-06-10 06:32关注
With the Facebook Apps API, it uses short-lived access tokens, the default lifespan is 2 hours. So regardless of the platform/OS/application you're going to need to renew those tokens anyway. You'll have to setup your app(s) to handle error messages returned by the Facebook API, and respond accordingly, so when an access token expires you can renew it in the background without further user input/management.
As for utilising the user data efficiently, when the app connects the first time you'll simply extract the data you need, in your case user photos, friends lists etc., and store it in your apps database for usage. Then when the access tokens expire you'll just need to renew them accordingly.
The 'Facebook login' specifically, they provide some more functionality for cross platform usage. Read up on this at the following link: https://developers.facebook.com/docs/facebook-login/overview/v2.0#cross-platform
That anchor link should give you the details/info you're after.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 plotBAPC画图出错
- ¥30 关于#opencv#的问题:使用大疆无人机拍摄水稻田间图像,拼接成tif图片,用什么方法可以识别并框选出水稻作物行
- ¥15 Python卡尔曼滤波融合
- ¥20 iOS绕地区网络检测
- ¥15 python验证码滑块图像识别
- ¥15 根据背景及设计要求撰写设计报告
- ¥20 能提供一下思路或者代码吗
- ¥15 用twincat控制!
- ¥15 请问一下这个运行结果是怎么来的
- ¥15 单通道放大电路的工作原理