在iOS中集成Facebook SDK [英] Integrating Facebook SDK in iOS

查看:118
本文介绍了在iOS中集成Facebook SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS中收集此错误时,我正在将facebook sdk集成到我的应用程序中
FBSDKLog:无法使用Facebook应用程序或Safari进行授权,fb394371460678795未注册为URL方案
如何打开facebook登录页面作为ios中的独立应用程序。

In iOS getting this error while i am integrating facebook sdk in my application "FBSDKLog: Cannot use the Facebook app or Safari to authorize, fb394371460678795 is not registered as a URL Scheme" how to open facebook login page as a seperate app in ios.

推荐答案

要通过iOS应用程序登录Facebook,可以使用三个选项:

To login with facebook through an iOS app three options are available


  1. 如果本地的Facebook应用程序可用,您将被引导到应用程序(您需要注册url方案)

  1. If native facebook app is available you will be directed to the app (You need to register url scheme)

如果Safari可以启动,您将通过safari((您需要注册url方案)被导向到facebook的登录页面)

If Safari can launch, you will be directed to the login page of facebook through safari ((You need to register url scheme))

如果两个选项不可用(您收到此错误),您将获得一个网页视图,您可以登录

If the two options are not available (You are getting this error) you will be provided with a web view there you can login

您的错误消息显示前两个选项在您的情况下不可用,可能您可能会忘记注册url方案

Your error message shows the first two options are not available in your case, probably you may forgot to register for the url scheme

更新

FacebookSDK 3.9 中,他们添加了一个登录流程(iOS登录对话框)获得了更高的优先级。根据文档的SDK 3.9。

In FacebookSDK 3.9 they have added one more login flow(iOS Login Dialog) gets the higher priority. As per SDK 3.9 from documentations.


1.iOS登录对话框

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

3。 Facebook App Web登录对话框

4.移动Safari登录对话框

1.iOS Login Dialog
2.Facebook App Native Login Dialog
3.Facebook App Web Login Dialog
4.Mobile Safari Login Dialog

如果该人在设备上设置了自己的Facebook帐户,则该登录对话框选项。如果Facebook帐户未设置,Facebook SDK将检查是否在设备上安装了Facebook应用程序。如果安装了Facebook应用程序,如果支持Facebook应用程序本机登录对话框。如果无法显示本机登录对话框,则会显示Facebook应用程序移动登录对话框。如果未安装Facebook应用程序,则会启动移动Safari以显示登录对话框。

If the person has set up their Facebook account on the device, then that login dialog option is selected. 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 native login dialog can't be displayed, the Facebook app mobile login dialog is presented. If the Facebook app isn't installed, mobile Safari is launched to display the login dialog.

这篇关于在iOS中集成Facebook SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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