To activate Facebook method in Social Login settings, I did all the steps from the Social setting / Facebook documentation.
Using this Social Login template tags:
{exp:smart_members:social_login providers = "facebook"
return = "conta"
remember_me = "yes" secure_action="yes" secure_return="yes"
enable_recaptcha = "yes" popup = "yes" }
{providers} {if providers:count == 1} <p> <select name="providers"> <option value=""></option> {/if} <option value="{provider_name}">{provider_label}</option> {if providers:count == providers:total_results} </select> </p> {/if} {/providers}
<div class="login-register-click cf"> <input type="submit" class="login-popup-btn register" value="Login With Social media" > </div> {/exp:smart_members:social_login}
The page works well but when I click on Login With Social media button, a Facebook popup window appears with this error message:
URL blocked: This redirect failed because the redirect URI is not white-listed in the app’s client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.
As Default callback URL is https://www.mysite.com/?ACT=229, I Selected the callback URL I have put in API.
As my callback URL is https://www.mysite.com/?ACT=229, to the callback URL for facebook I entered https://www.mysite.com/?ACT=229/?ACT=85&hauth;.done=Facebook
But the problem of Facebook popup window appears with this error message continue.
I tried to copy and paste the URI of the Facebook Popup window message:
https://www.facebook.com/v2.8/dialog/oauth?auth_type=rerequest&client_id=336078570995991&state=c2c83caa37d8ec2189eb4cb55c89e8eb&response_type=code&sdk=php-sdk-5.6.1&redirect_uri=https://www.mysite.com?ACT=229&hauth_done=Facebook&scope=email,user_birthday,user_hometown,user_location
I put on the Valid OAuth Redirect URIs this URI:
https://www.mysite.com?ACT=229&hauth_done=Facebook&scope=email,user_birthday,user_hometown,user_location
the problem of Facebook popup window appears with this error message still continue.
How to resolve this problem ?
|