When I click on login with Facebook button, it is opening safari browser and getting closed immediately. Noticed error on the console.
App delegate method:
I have missed the importing FBSDKCoreKit. Later it started working on the simulator but not on the iPhone device.
Also noticed the following FAQ on the Facebook site. Why do I see console messages like
'canOpenURL: failed for URL: "fb...://'
or ? This is a Xcode warning indicating the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning
Regarding not working on the iPhone device, please refer: Parse API - Facebook login not working on the iPhone device