iOS Facebook SDK Error Domain com.facebook.sdk Code 2 and Code 7

前端 未结 4 1603
情深已故
情深已故 2020-12-06 17:55

I am developing the application which allow user to login via Facebook (using Facebook SDK for it). The error appears when a user has already logged in Facebook in iPhone se

4条回答
  •  长情又很酷
    2020-12-06 18:16

    Check that you pasted in the Facebook XML into your Info.plist correctly! (as seen here)

    CFBundleURLTypes
    
      
        CFBundleURLSchemes
        
          fb{your-app-id}
        
      
    
    FacebookAppID
    {your-app-id}
    FacebookDisplayName
    {your-app-name}
    LSApplicationQueriesSchemes
    
      fbapi
      fb-messenger-api
      fbauth2
      fbshareextension
     
    

    I forgot to omit the curly brackets, and instead replaced the inner text, yielding the error this post references. Make sure you replace the "{your-app-id}" entirely!

提交回复
热议问题