Topic-icon mobile apps & jfbconnect support

Active Subscriptions:

None
8 years 3 months ago - 8 years 3 months ago #56997 by Reago Srl
Hello,
we're going to build an ios and an android app for our services, we're going to connect these apps to the joomla DB using the webservices (actually we're searching for a good component to manage properly those web services, do you suggest a component with these feature? basically we need to create and close user sessions and read and write from certain tables on the db).

We will need also to make the login possible for the users from the app, so we were searching for documentation about how to build in these apps a system that works as jfbconnect/sclogin, can you help us with this?
Last edit: 8 years 3 months ago by Reago Srl.
The topic has been locked.
Support Specialist
8 years 3 months ago #57001 by alzander
The Facebook API generates one key that you can use for web, iOS and Android. Most of the interaction should be done within the app itself for the authentication of the user. Once that's done, Facebook will return a unique user token that you could use to lookup that user in the jfbconnect_user_map table and find their Joomla ID. After you have that Joomla ID, you know what user you're working with and can fetch any other data you need.

So, in short, JFBConnect won't be doing the authentication within your app, you'll just do the database checks to find the user within JFBConnect and find their Joomla account. Conversely, if you need to create the user through the app, you need to create the user in Joomla and then add the proper row to our user_map table so we recognize them in the future.

If you're building an app and planning a whole service to do this, the above (hopefully) doesn't sound too scary :)

As for a webservices extension, unfortunately, I don't have any good recommendations for you. With so many extensions and unique cases, if you need a webservice, a lot of the time, it's roll your own.

I hope that helps,
Alex
The topic has been locked.