markerPaper

MaPa Recipes => Mapa Recipes => Topic started by: crownbbq on May 08, 2018, 03:25:41 PM

Title: Facebook Login
Post by: crownbbq on May 08, 2018, 03:25:41 PM
I've been trying to make FB log in work for a few days now, I got my SSL straightened out, so site is working off https:// now. But when I try to log in using FB Login I get an error msg

Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings.

I have my domain listed in the app domains field.    Any ideas? Or has anyone else had this?

Thanks
Title: Re: Facebook Login
Post by: alexa on May 08, 2018, 03:45:17 PM
You need to switch off Enforce HTTPS and Use Strict Mode for Redirect URIs in Facebook Login -> Settings
Title: Re: Facebook Login
Post by: crownbbq on May 08, 2018, 03:48:05 PM
Thanks for the quick reply.

Facebook no longer allows the user to switch those off.
Title: Re: Facebook Login
Post by: alexa on May 08, 2018, 04:28:16 PM
I'll check this...
Title: Re: Facebook Login
Post by: alexa on May 09, 2018, 08:12:46 AM
Yes, callback URL must be with https:

https://stackoverflow.com/a/49554077/4151501
Title: Re: Facebook Login
Post by: crownbbq on May 09, 2018, 11:55:02 AM
Thank You...

so my Valid OAuth redirect URIs: should be      https://mysite.com/hybridauth/index.php

correct?
Title: Re: Facebook Login
Post by: alexa on May 09, 2018, 12:20:23 PM
Yes, also Strict Mode for Redirect URIs: Yes; Enforce HTTPS: Yes
Title: Re: Facebook Login
Post by: crownbbq on May 09, 2018, 12:31:35 PM
Thanks, still getting same message....I'm going to look and make sure I haven't made a silly mistake somewhere
Title: Re: Facebook Login
Post by: crownbbq on May 09, 2018, 01:44:50 PM
I'm not trying to be a bother, but any other ideas I can try?  I'm at a loss
Title: Re: Facebook Login
Post by: alexa on May 09, 2018, 05:19:16 PM
I'll send you updates tomorrow
Title: Re: Facebook Login
Post by: crownbbq on May 09, 2018, 07:29:58 PM
Thank You
Title: Re: Facebook Login
Post by: alexa on May 10, 2018, 08:14:25 AM
Please upload files
Title: Re: Facebook Login
Post by: alexa on May 10, 2018, 12:23:53 PM
You can test this in demo

Please upload files
Title: Re: Facebook Login
Post by: crownbbq on May 10, 2018, 01:01:12 PM
Thanks for your work...I apparently still have something wrong on my part,cause I get a different error now,  is      theValid OAuth Redirect URIs  still the same? 

New Error

URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
Title: Re: Facebook Login
Post by: alexa on May 10, 2018, 04:10:28 PM
Example https:
Title: Re: Facebook Login
Post by: crownbbq on May 10, 2018, 05:11:59 PM
I can't express how sorry I am to keep asking questions.  Followed the examples and fixed the error, but now a new error...

Invalid Scopes: user_friends, publish_actions. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions
Title: Re: Facebook Login
Post by: alexa on May 10, 2018, 05:59:29 PM
 You can try with different Facebook acount, this notification is visible only to for admin users.
Title: Re: Facebook Login
Post by: crownbbq on May 10, 2018, 06:04:03 PM
Thank You!!   All good
Title: Re: Facebook Login
Post by: alexa on May 11, 2018, 05:19:38 AM
Ok  :)