简体   繁体   中英

Native (iOS or Android) Facebook login using popup dialog only?

I have iOS and Android apps built and working with the FB SDK, but I've only ever seen two Login Dialog styles: * Switch to the installed Facebook App for auth, and * Embedded WebView/Safari online auth.

Lots of other apps seem to achieve this using a simple, native popup dialog, and Facebook seem to indicate that this is still possible, as in the following image from https://developers.facebook.com/docs/facebook-login/manually-build-a-login-flow/v2.0

Anyone know how to force or indicate a preference for the popup? A 48 hour search of the Net has no turned anything up that seems even vaguely current.

Thanks in advance.

Image at: https://scontent-lhr.xx.fbcdn.net/hphotos-prn1/l/t39.2178-6/851582_133467196842050_800025839_n.png (not enough rep points to post inline!)

对于IOS如果您下载FB-IOS SDK,则示例应用程序“ HelloFacebookSample.xcodeproj使用FBLoginViewclass,可以将其配置为所需的类。类似的功能应可用于Android。

The minimal native popup dialogs are not supported in Login V2, which launched yesterday at f8 (there are a few exceptions). The SDKs will try to use the most optimal method of displaying the dialog, preferring to fast app switch to the Facebook app.

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