简体   繁体   English

使用 Facebook 和 iOS 自定义应用内登录和授权

[英]Custom in-app login and authorisation with Facebook and iOS

I am just starting out with the Facebook SDK for iOS.我刚开始使用 iOS 的 Facebook SDK。 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.在应用程序中有一个自定义登录屏幕,因此用户在我的应用程序中输入他们的 email 和密码进行登录。

Secondly:第二:

Authorise the application in-app without leaving to authorise through Safari or The official Facebook app?通过 Safari 或官方 Facebook 应用程序授权应用程序内的应用程序?

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.一个例子是 iPhone 的 Facely HD,当您第一次使用它时,您输入您的登录详细信息,然后被要求在不离开应用程序的情况下进行所有授权。

In facebook.m in the Facebook iOS SDK, you can call [self authorizeWithFBAppAuth:NO safariAuth:NO] and this will popup the standard UIWebView. 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.这应该涵盖这两个选项,因为首先会出现 Facebook 登录屏幕,然后会出现授权您的应用程序的提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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