facebook login issue - canOpenURL: failed for URL: “fbauth2:///” - error: “(null)”

前端 未结 9 821
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 18:13

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:



        
9条回答
  •  無奈伤痛
    2020-12-08 18:39

    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

提交回复
热议问题