Custom in-app login and authorisation with Facebook and iOS
I am just starting out with the Facebook SDK for iOS. Where sh开发者_运维知识库ould 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.
精彩评论