The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facebook login callback not working
#1
Hi all,

I'm very interested in using UserSpice for its social login capability. I'm having issues getting the facebook login to work correctly. After following the documentation here and messing with many different settings (enabling SSL, confirming userspice's callback setting, changing FB Graph version, etc) I haven't been able to remove the error that facebook returns after attempting to log in. The error returned is...


Quote:Graph returned an error: 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.



At this moment I have waited over 10hrs for changes on the facebook settings page to propagate with no change. I have reviewed the facebook settings and yes--my sub domain and domain relevant to the userspice install are listed. The callback Oauth URIs are listed (including https://) on the facebook settings page, and testing the callback URL with the Redirect URI Validator returns as "This is a valid redirect URI for this application." I have even copy and pasted the callback from the request when clicking the social login button on userspice, yet nothing has changed.

What am I missing? Could my shared hosting environment somehow be causing a problem?

Thank you for your help,
Jaxx
  Reply
#2
Hi Jaxx,

Take a look at the link below:
https://github.com/facebook/php-graph-sdk/issues/963

Read through that and it should provide you with a solution. We may (or may not have) fixed this in the 4.4 which is currently in Development.

Thank you,
Brandin.
  Reply
#3
(08-30-2018, 05:30 PM)Brandin Wrote: Hi Jaxx,

Take a look at the link below:
https://github.com/facebook/php-graph-sdk/issues/963

Read through that and it should provide you with a solution. We may (or may not have) fixed this in the 4.4 which is currently in Development.

Thank you,
Brandin.

Brandin,

Thanks for the link! This worked perfectly.

I modified the FacebookRedirectLoginHelper.php, line 226 to the parameters mentioned in the post linked:
PHP Code:
$redirectUrl FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code''state''enforce_https']); 


For those looking for the file to fix this bug: it is in Userspice4/users/src/Facebook/Helpers/

Cheers,
Jaxx
  Reply
#4
Hi Jaxx,

Glad to hear this.

If you have some time, can you report this at userspice.com/bugs in case we didn't resolve this in the new development version?

Thank you,
Brandin.
  Reply
#5
Issue submitted, #325.
  Reply
#6
Just wanted to piggyback on this to say that I had the same problem, and the same edit seems to have solved it. Haven't tested it thoroughly yet, but for now it looks good. Thanks guys!
  Reply
#7
Thanks jtullett for letting us know!

We've deployed this to our 4.4 Repo which is still in Development.

Thank you,
Brandin.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)