Topic-icon Trigger FB login

Active Subscriptions:

None
3 years 4 months ago #66898 by rakesh
Trigger FB login was created by rakesh
Hi,

Currently using my website within a iOS/Android App and wish to login through FB. The Social button of CS Login are not working, due to Popup restrictions of the App.

Is there another way to trigger the FB login of JFBconnect?

Javascript/modal?
The topic has been locked.
Support Specialist
3 years 4 months ago #66899 by alzander
Replied by alzander on topic Trigger FB login
In the JFBConnect -> Configuration -> Facebook area, there's an option for "Show login in popup". Set that to 'no' and the user will be redirected to Facebook to login instead of using the popup method.

I hope that helps, but if you need anything else, just let me know!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
3 years 4 months ago - 3 years 4 months ago #66900 by rakesh
Replied by rakesh on topic Trigger FB login
By disableing the Popup I now get the Redirect FaceBook error:
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.

When I turn the popup on, it works again. Very strange.
Still had to add this to the FB redirect settings:
yourdomain.com/index.php?option=com_jfbc...ck&provider=facebook
www.yourdomain.com/index.php?option=com_...ck&provider=facebook


Was actually looking for a solution for a specific CS module with the social button/link, not a general settings, since I would prefer keeping the popup function active for the other modules.
Last edit: 3 years 4 months ago by rakesh.
The topic has been locked.
Active Subscriptions:

None
3 years 4 months ago #66901 by rakesh
Replied by rakesh on topic Trigger FB login
Is there a URL I can use to activate the FaceBook login?
www.facebook.com/dialog/oauth?client_id=...rcecoast&scope=email

Or do I need to recreate a different the SClogin module that keeps the popup settings to no?
The topic has been locked.
Support Specialist
3 years 4 months ago #66916 by alzander
Replied by alzander on topic Trigger FB login
Sorry for the delayed response.

Regarding the redirection issue, it sounds like it started working when you added the alternative URL with 'www' in it? Facebook can be picky in multiple ways, so if your site is accessible by both www and non-www or http and https, you should use all of those combinations.

Was actually looking for a solution for a specific CS module with the social button/link, not a general settings, since I would prefer keeping the popup function active for the other modules.

[/quote]
We don't have module-specific settings for how the popup happens. Each provider has multiple options and it would be very complex to offer master configuration options with override them in different areas. We try to do that where possible, but also prefer not to have duplicated settings as much as possible. Hopefully, the solution you're using is workable.

Is there a URL I can use to activate the FaceBook login?[/code]
Can you explain more about what you mean? The URL you provided has the callback going to MYDOMAIN.com which is not correct. I'm unsure if you updated that or it's what's actually being generated on your site. Either way, it's wrong. However, you shouldn't have to activate the login other than setting up your Facebook application per our configuration guide.

I hope the above helps explain, but should you need anything else, just let me know!

Thanks,
Alex

The topic has been locked.