Facebook登录的预期行为是什么? [英] What is the expected behaviour of Facebook login?

查看:105
本文介绍了Facebook登录的预期行为是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道当用户已经通过Facebook应用程序登录到设备上的Facebook,并且该应用被授予在先前登录中所需的权限时,iPhone应用程序中集成的Facebook登录的预期行为是什么。我想知道应用程序是否退出并重新启动,如果仍然切换到Facebook应用程序/网站来检查权限,还是应该在不离开应用程序的情况下静默登录用户?目前,我的应用切换到Facebook,检测到用户已经授权访问,要求确定或取消并返回到应用程序。我想知道这个行为是否预期,因为它似乎没有什么,但不必要的切换。我以另一种形式提出了这个问题,我已经包含了我的代码。以下是链接: http://bit.ly/1E1u2VI

I want to know what the expected behaviour of Facebook login integrated in an iPhone app is, when a user is already logged into Facebook on the device through Facebook app, and the app is granted the required permissions in the previous login. I want to know if the app exits and starts again, should it still switch to Facebook app/website to check the permissions or should it silently log the user in without getting out of the app? Currently, my app switches to Facebook, detects that the user has already granted access, asks for an Ok or Cancel and comes back to the app. I wan to know if this behaviour is expected, because it seems it's doing nothing but unnecessary switching. I have asked this question in another form and I have included my code. Here's the link: http://bit.ly/1E1u2VI

谢谢!

推荐答案

它无需离开应用即可静默登录用户。为此,您可以检查当前用户的权限。

It silently log the user in without getting out of the app. For that you can check the current user's permissions.

这可能有助于您:

控制登录对话框

Facebook SDK根据人员设备的帐户设置和功能自动选择最佳的登录对话流程。这是Facebook SDK实现的默认顺序:

The Facebook SDK automatically selects the optimal login dialog flow based on the account settings and capabilities of a person's device. This is the default sequence that the Facebook SDK implements:


  1. Facebook应用程序本机登录对话框

  2. Facebook应用程序Web登录对话框

  3. 移动Safari登录对话框

  4. 如果Facebook帐户未设置,Facebook SDK将检查Facebook应用程序是否安装在设备上。如果安装了Facebook应用程序,如果支持Facebook应用程序本机登录对话框。如果Facebook应用程序本机登录对话框无法显示,因为有一个旧版本的应用程序,则会显示Facebook应用程序Web登录对话框。如果没有安装Facebook应用程序,则会启动移动Safari以显示Mobile Safari登录对话框。

  1. Facebook App Native Login Dialog
  2. Facebook App Web Login Dialog
  3. Mobile Safari Login Dialog
  4. If the Facebook account is not set up, the Facebook SDK checks to see if the Facebook app is installed on the device. If the Facebook app is installed, the Facebook app native login dialog is presented if it's supported. If the Facebook app native login dialog can't be displayed because there's an old version of the app, the Facebook app web login dialog is presented. If the Facebook app isn't installed, mobile Safari is launched to display the Mobile Safari login dialog.

以下是代码的截图

这篇关于Facebook登录的预期行为是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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