Author Topic: Facebook Login  (Read 724 times)

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Facebook Login
« 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

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #1 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

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #2 on: May 08, 2018, 03:48:05 PM »
Thanks for the quick reply.

Facebook no longer allows the user to switch those off.

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #3 on: May 08, 2018, 04:28:16 PM »
I'll check this...

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #4 on: May 09, 2018, 08:12:46 AM »
Yes, callback URL must be with https:

https://stackoverflow.com/a/49554077/4151501

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #5 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?

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #6 on: May 09, 2018, 12:20:23 PM »
Yes, also Strict Mode for Redirect URIs: Yes; Enforce HTTPS: Yes

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #7 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

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #8 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

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #9 on: May 09, 2018, 05:19:16 PM »
I'll send you updates tomorrow

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #10 on: May 09, 2018, 07:29:58 PM »
Thank You

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #11 on: May 10, 2018, 08:14:25 AM »
Please upload files

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #12 on: May 10, 2018, 12:23:53 PM »
You can test this in demo

Please upload files

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #13 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.
« Last Edit: May 10, 2018, 01:19:24 PM by crownbbq »

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #14 on: May 10, 2018, 04:10:28 PM »
Example https:

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #15 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

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #16 on: May 10, 2018, 05:59:29 PM »
 You can try with different Facebook acount, this notification is visible only to for admin users.
« Last Edit: May 10, 2018, 06:02:57 PM by alexa »

Offline crownbbq

  • Sr. Member
  • ****
  • Posts: 16
  • Karma: +0/-0
Re: Facebook Login
« Reply #17 on: May 10, 2018, 06:04:03 PM »
Thank You!!   All good

Offline alexa

  • Administrator
  • Hero Member
  • *****
  • Posts: 493
  • Karma: +7/-1
Re: Facebook Login
« Reply #18 on: May 11, 2018, 05:19:38 AM »
Ok  :)