Facebook-ios-sdk: "Sorry, something went wrong" displays instead of login dialog

Created on 16 Dec 2019  路  8Comments  路  Source: facebook/facebook-ios-sdk

Checklist

Environment

Describe your dev environment here, giving as many details as possible. If you have them, make sure to include:

  • Xcode Version: 11.2.1
  • Swift Version: 5
  • Installation Platform & Verison: Cocoapods 1.8.4

Report

I want to be able to login into my app using my Facebook account. However, when I tap the login button, the window shows a Facebook page telling "Sorry, something went wrong" and I don't even get to the actual login page. My log shows this error:

-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn鈥檛 be completed. (OSStatus error -10814.)

Steps to Reproduce

Simply tap the login button.

Most helpful comment

For me the issue was that I had requested invalid permissions in the login button:

loginButton.permissions = ["name", "picture"]

When the correct way to request name and picture was simply:

loginButton.permissions = ["public_profile"]

All 8 comments

@penelopearaujo The canOpenURL: failed for URL message wouldn't be related to the "Sorry, something went wrong" issue you're seeing. That's just what the system displays when the SDK checks if the Facebook app is installed via the canOpenURL method and it's not present.

Have you followed all the steps shown here to configure your app for Facebook Login? If you have, please reach out to Facebook Developer Support so they can help debug your specific issue).

I am also experiencing the same issue here, Please help
It is working in iOS 12 though.
not working in iOS 13

@edcastparesh If you could provide some more specifics (SDK version, etc.) I can look into it.

I am also experiencing the same issue here, Please help
It is working in iOS 12 though.
not working in iOS 13.2.3

I also have the same issue.
It is working in iOS 12 though.
not working in iOS 13.2.3

It is working with Xcode 10 but not in Xcode 11

Thanks, @robtimp! I downgraded my FBSDKLoginKit to version 5.8.0 and it worked.

@robtimp just wondering if you closed this issue because downgrading fixed it?

For me the issue was that I had requested invalid permissions in the login button:

loginButton.permissions = ["name", "picture"]

When the correct way to request name and picture was simply:

loginButton.permissions = ["public_profile"]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

AustinConlon picture AustinConlon  路  8Comments

Meilu picture Meilu  路  7Comments

Jumhyn picture Jumhyn  路  5Comments

Kry256 picture Kry256  路  6Comments

liamnichols picture liamnichols  路  6Comments