简体   繁体   中英

Custom in-app login and authorisation with Facebook and iOS

I am just starting out with the Facebook SDK for iOS. Where should I start if I want to firstly:

Have a custom login screen in-app, so the user enters their email and password inside my app to login.

Secondly:

Authorise the application in-app without leaving to authorise through Safari or The official Facebook app?

An example is Facely HD for the iPhone, as when you first use it you enter your login details and then are asked to authorised all without leaving the application.

In facebook.m in the Facebook iOS SDK, you can call [self authorizeWithFBAppAuth:NO safariAuth:NO] and this will popup the standard UIWebView. That should cover both options as first the Facebook login screen will appear and then after that the prompt to authorize your application will appear.

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