简体   繁体   中英

Facebook iOS SDK Demo App - URL Scheme won't work

I entered my App-ID (DemoAppViewController.m - Line 25) in the FB Demo App and added the following URL-Scheme in the Info.plist:

URL Types -> Item 0 -> URL Schemes -> Item 0 -> fb125014xxxxxxxxx

But everytime I'm trying to login it will redirect me to Safari. What am I missing?

did you enter your app-id like this to DemoAppViewController.m?

@"app-id"

If you do not have the Facebook app installed, then that is the way it is supposed to work. It will call up Safari to collect the user's login credentials. Then it will return back to the app, the result of that login attempt (success, failed, canceled).

You can set the tryFBAuth or trySafariAuth settings to NO to disable those, outside mechanisms, in which case a dialog will pop up to collect user email/password.

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