简体   繁体   中英

How to implement Fabcebook Login in iOS with SSO for dialog prompt?

I want to implement Facebook login using dialog, not by automatic launching of the Facebook app or Safari.

Im using ARC in my project and I've compiled the script file ( build_facebook_ios_sdk_static_lib.sh ), by compiling the script file, I got folders in my facebook-ios-sdk-master containing lib->facebook-ios-sdk and inside facebook-ios-sdk folder, I have some .h files, and couple of files. all that files have been dragged and dropped to the project.
Problem is how to implement Login dialog with those .h files and couple of files. and I don't want to login with launching Facebook native app or launching Safari in iOS. Please, is there any answer ?

You need to do changes in facebook_ios_static lib before compilation.
open facebook.m file then go to the method

[facebook authorize:nil];
and set
 [self authorizeWithFBAppAuth:NO safariAuth:NO]; 
and then compile it.
So everytime, when you'll call fb login method, login page will prompt in dialog box not in safari or facebook app.

I don't think it's possible. It's better to use the standard thing, since the users are already used to it.

iOS6 should have already integrated with facebook, so no longer need to worry about this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM