移动应用程序在Facebook登录 [英] Facebook Login within Mobile App

查看:149
本文介绍了移动应用程序在Facebook登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算整合登录facebook功能为我的iPhone / Android应用程序;我有一个PHP后端的维护用户的详细信息。

我很困惑,什么是此功能应当执行的标准方法是什么?

难道 - 在用户被成功通过Facebook的认证,我应该拿他/她的个人资料,并要求他输入密码把他记录下来,以我的后端或有这需要做的事情和放别的东西;我不知道。

请建议执行此功能的标准方法。

感谢。

解决方案

登录与Facebook按钮

  1. 重定向一个新用户的Facebook的权限

  2. 与Facebook和你的网站的密码信息

    pre灌注你的登记表。

  3. 保存用户的详细信息在后端。

当连接的用户再次登录

  1. 检查活跃的Facebook会话

  2. 获取当前Facebook的用户的用户ID等于保存在数据库中记录了他在

  3. 其他节目报名表。

I am planning to integrate "Login With Facebook" feature into my iPhone/Android App; and I have a PHP back-end for maintaining user details.

I am confused as to what is the standard way in which this feature should be implemented?

Is it that - After the user gets successfully authenticated by Facebook, should I fetch his/her details and ask him for a password to register him to my back-end or is there something else which needs to be done & I am not aware.

Please suggest the standard way of implementing this feature.

Thanks.

解决方案

Login with facebook button

  1. Redirect a new user to facebook for required permissions

  2. Prefill your register form with details from facebook and a password for your site.

  3. Save details of the user in your backend.

When the connected user logins again

  1. Check for active facebook session

  2. Get the userID of current facebook user is equal to that saved in your database log him in

  3. else show registration form.

这篇关于移动应用程序在Facebook登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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