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
Social Logins - Anyone actually get them to work?
#1
Unable to get google login or facebook login working.

Google login: During the signup/login process, the google webpage shows up stating: Sign in with Google.  After a valid username/pass is entered, it redirect back to the login page.


Facebook: Anyone know what the values under "Facebook Graph Version - Formatted as v2.2" and "Redirect After Facebook Login" should be?  I receive the following error when logging in: "[font=Times New Roman]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. I already added the domain into the app domains field. [/font]

[font=Times New Roman]Anyone actually get this to work?[/font]
  Reply
#2
Hello,

Please verify you followed these steps:
https://userspice.com/social-logins/

Thank you,
Brandin.
  Reply
#3
(07-02-2018, 10:58 PM)Brandin Wrote: Hello,

Please verify you followed these steps:
https://userspice.com/social-logins/

Thank you,
Brandin.

yes, i followed the exact instructions listed.
  Reply
#4
Found the fix in another users post for facebook. can you add this into the next patch?

"Made changes on file /users/src/Facebook/Helpers/FacebookRedirectLoginHelper.php

in line 226, from:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']);

to:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'state']);"

Also set "Redirect After Facebook Login" to your domain. Any idea what value should be in "Facebook Graph Version - Formatted as v2.2"?
  Reply
#5
Google login shows the following errors:
Notice: Undefined offset: 0 in /home/myg/portal.domain.com/users/classes/DB.php on line 279
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 81
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 87
  Reply
#6
(07-03-2018, 01:20 AM)steve123123 Wrote: Found the fix in another users post for facebook. can you add this into the next patch?

"Made changes on file /users/src/Facebook/Helpers/FacebookRedirectLoginHelper.php

in line 226, from:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']);

to:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'state']);"

Also set "Redirect After Facebook Login" to your domain. Any idea what value should be in "Facebook Graph Version - Formatted as v2.2"?

I remember this problem-and we've patched it already for a 4.4 release.

(07-03-2018, 04:23 AM)steve123123 Wrote: Google login shows the following errors:
Notice: Undefined offset: 0 in /home/myg/portal.domain.com/users/classes/DB.php on line 279
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 81
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 87

I will try to look this later for you.
  Reply
#7
(07-03-2018, 11:01 AM)Brandin Wrote:
(07-03-2018, 01:20 AM)steve123123 Wrote: Found the fix in another users post for facebook.  can you add this into the next patch?  

"Made changes on file /users/src/Facebook/Helpers/FacebookRedirectLoginHelper.php

in line 226, from:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['state']);

to:
$redirectUrl = FacebookUrlManipulator::removeParamsFromUrl($redirectUrl, ['code', 'state']);"

Also set "Redirect After Facebook Login" to your domain.  Any idea what value should be in "Facebook Graph Version - Formatted as v2.2"?

I remember this problem-and we've patched it already for a 4.4 release.

(07-03-2018, 04:23 AM)steve123123 Wrote: Google login shows the following errors:
Notice: Undefined offset: 0 in /home/myg/portal.domain.com/users/classes/DB.php on line 279
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 81
Notice: Trying to get property 'id' of non-object in /home/myg/portal.domain.com/users/includes/google_oauth.php on line 87

I will try to look this later for you.
any update?
  Reply
#8
Hi, I've looked into this and cannot reproduce in 4.4. What action did you take that caused this to occur?

Thank you.
  Reply
#9
(08-04-2018, 04:05 AM)Brandin Wrote: Hi, I've looked into this and cannot reproduce in 4.4. What action did you take that caused this to occur?

Thank you.

when is 4.4 being released?  latest version for me is 4.3.25.

my values:
clientid and client secret match the values given by google.
Full Home URL of Website - include the final /: https://portal.domain.com/
Google Redirect URL (Path to oauth_success.php): https://portal.domain.com/users/oauth_success.php

In google console:
Authorized redirect URIs: https://portal.domain.com/users/oauth_success.php

Errors:
Notice: Undefined offset: 0 in /home/mygasdfd/portal.domain.com/users/classes/DB.php on line 279

Notice: Trying to get property 'id' of non-object in /home/mygasdfd/portal.domain.com/users/includes/google_oauth.php on line 81

Notice: Trying to get property 'id' of non-object in /home/mygasdfd/portal.domain.com/users/includes/google_oauth.php on line 87
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)