Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
343 views
in Technique[技术] by (71.8m points)

iphone - Integrating Facebook SDK in 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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

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

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

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

enter image description here

Update

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 Login Dialog
2.Facebook App Native Login Dialog
3.Facebook App Web Login Dialog
4.Mobile Safari Login Dialog

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...