× Requests and support related to jBackend.

Best approach for Facebook + Joomla login

  • fasterjoomla
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #3765 by fasterjoomla
Best approach for Facebook + Joomla login was created by fasterjoomla
Our (cordova) app logins fine using jBackend, now we need to implement facebook login (so that a user can login to our app using their facebook account).

App: cordova, ionic, angular
Server: Joomla 3.4.1 + jBackend

What is the best way to achieve this?
Can you suggest best practices or available solutions?

Thank you

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago - 9 years 1 month ago #3766 by admin
Replied by admin on topic Best approach for Facebook + Joomla login
Hi,
this question is really interesting, but it does not have a simple answer and requires a little discussion.

First, there are a couple of things to consider which must be "milestones" in the resulting scenario:

1) The login process, that involves interaction with FB itself, MUST be executed on the mobile side (don't think to pass FB credentials to the server);

2) The app secret MUST be stored on the server side, because the mobile app can be decompiled and the secret could be visible in clear.

I have found this image that summarize the login process.



I have also found an interesting article which describes the best practices to do this.

medium.com/@taylorhughes/the-right-way-to-implement-facebook-login-in-a-mobile-app-57e2eca3648b

So the first step could be to implement the FB login in your app, as example with this Cordova module:

github.com/Wizcorp/phonegap-facebook-plugin

After this, you should send the auth token to your server (e.g. to a custom jBackend module), and this should verify if is a valid token and grant access to the mobile app.

Kind regards,
Luigi
Attachments:
Last edit: 9 years 1 month ago by admin.
The following user(s) said Thank You: fasterjoomla

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds