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.
精彩评论