Easy Login with Facebook Error

I get the following error message trying to use the easy login:
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App’s settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App’s domains.
I’m sure that I did every step described here: https://backendless.com/documentation/users/ios/users_facebook_login.htm for the easy login with facebook procedure.
I put in the application id and secret in the backendless app settings, changed my plist and edited the application:openurl… method.
Then i call the following method (taken from the documentation):

Backendless.sharedInstance().userService.easyLoginWithFacebookFieldsMapping(["email":"email"], permissions: ["email"],
 response: {(result : NSNumber!) -> () in
 print ("Result: \(result)")
 },
 error: { (fault : Fault!) -> () in
 debugPrint(fault)
 })

Can you tell me what could have gone wrong? How can I debug this error message? I copy and pasted all ids and secrets again just to make sure. I even created a new facebook app just to make sure… I am using Swift and the SDK for the iOS platform.
Thanks for your help.

Hi Keven!

Following error “Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App’s settings. …” returns facebook service. Make sure you add website and app domains in facebook app configuration (like on this screen shot).
Regards,
Kate.

Hi Kate, thanks for the fast reply. Where does this say this in your documentation? Anyway this helps a just a little bit :wink: After the login I get redirected to the a site on backendless: api.backendless.com/v1/user and the browser prompts me with the in the screenshot. Any idea?

Please re-check if you have following lines in Info.plist file: https://monosnap.com/file/SeP79MBJoPXEBHyX5TZPxLBt7swSZj

Hi Kate, thanks this worked :slight_smile: Is there any way to get rid of the prompt and directly go back into the app?

Hi there! Have you figured it out? I’m facing the same problem… I can Log In OK but it would be great if it went directly to the app instead of asking the user if he/she wants to open the link with the app

Unfortunately no update on that. Sorry.