The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/printthread.php 16 require_once



UserSpice
Unable to activate facebook sign-in - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: Unable to activate facebook sign-in (/showthread.php?tid=1054)



Unable to activate facebook sign-in - iipx - 05-01-2018

Hi, I'm new to userspice, trying to implementing facebook sign-in but got famous messages:

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 sub-domains of your app to the App Domains field in your app settings.

I already follow all steps in the documentation, perhaps I miss something?

Greetings,

-iip-


Unable to activate facebook sign-in - Brandin - 05-01-2018

You need to ensure the Redirect URIs are set properly. Please revisit the instructions to be sure it is setup properly.


Unable to activate facebook sign-in - iipx - 05-02-2018

Hi Brandin,

I already put [mywebrootfolder]/users/fb-callback.php to Valid OAuth Redirect URIs also in Userspice settings





Unable to activate facebook sign-in - Brandin - 05-02-2018

Did you make sure you are handling http/https properly within this redirect URI too? Because this would also be a factor.


Unable to activate facebook sign-in - iipx - 05-03-2018

I'm using https and already set all to https.

I'm also add google sign-in and it works like a charm, only facebook have the problem, for your info I'm using v2.12 for the graph version, is it have an impact?


Unable to activate facebook sign-in - Brandin - 05-03-2018

Not based on the error you are getting. What I generally do when linking Facebook is I enter the URL to the ACP in Social Logins, and copy it (not manually retype it) into the Facebook App Redirect URIs to make sure its exactly the same. Otherwise, I cannot debug what is not working-as it is clearly a problem with your redirect URIs.


Unable to activate facebook sign-in - iipx - 05-04-2018

Hi Brandin,

After did some search on Google, I found follow this refferences:

https://github.com/facebook/php-graph-sdk/pull/913
https://github.com/facebook/php-graph-sdk/pull/913/files/53a3d0503c7c6fded11449512e38ebb45aedb6da

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']);


Now my web can login with facebook.

Thanks for the discussion,

Greetings,

-iip-



Unable to activate facebook sign-in - mudmin - 05-04-2018

Like we said in the instructions. Facebook changes things almost monthly. THANK YOU for figuring this out. I will fill out a ticket so this gets updated for everyone.