Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Sorry, something went wrong" displays instead of login dialog #1157

Closed
5 tasks done
penelopearaujo opened this issue Dec 16, 2019 · 12 comments
Closed
5 tasks done

"Sorry, something went wrong" displays instead of login dialog #1157

penelopearaujo opened this issue Dec 16, 2019 · 12 comments

Comments

@penelopearaujo
Copy link

penelopearaujo commented Dec 16, 2019

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’t be completed. (OSStatus error -10814.)

Steps to Reproduce

Simply tap the login button.

@robtimp robtimp changed the title -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.) "Sorry, something went wrong" displays instead of login dialog Dec 17, 2019
@robtimp
Copy link
Contributor

robtimp commented Dec 17, 2019

@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).

@edcastparesh
Copy link

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

@robtimp
Copy link
Contributor

robtimp commented Dec 18, 2019

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

@dannisliang
Copy link

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

@nikunjgabani
Copy link

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

@penelopearaujo
Copy link
Author

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

@robtimp robtimp closed this as completed Jan 17, 2020
@f3z0
Copy link

f3z0 commented May 28, 2020

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

@f3z0
Copy link

f3z0 commented May 28, 2020

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"]

@AnkurLahiry
Copy link

AnkurLahiry commented Sep 20, 2021

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"]

@f3z0 take my cordial love 💕 ❤️

@mahesh-rathod4
Copy link

Thanks you saved my day : )

@Dagge11
Copy link

Dagge11 commented Aug 3, 2023

This problem/error is still present in 2023 on Windows. SDK V17.0

@abilogos
Copy link

in my case I had to add read public email permission

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants