Topic-icon JFBConnect usage on mobile app

Active Subscriptions:

None
11 years 9 months ago #46822 by lyljov
Hi,

I'm wondering if there's a way to use JFBConnect to ease the login interface of the mobile app? Since this is a development from scratch, what are the functions required to adapt the login to the mobile app?
The topic has been locked.
Support Specialist
11 years 9 months ago #46824 by alzander
JFBConnect has multiple ways to be used in a mobile app. You can use the following tag anywhere on your site to show the login buttons for specific providers, along with a custom image button (which can be optimized for mobile):
{JFBCLogin providers=facebook,twitter image=mobile_login.png}
That will load the mobile_login.png button from /media/sourcecoast/images/provider/facebook/mobile_login.png and the twitter directory, respectively.

That avoids using the SCLogin altogether which gives you full control. Of course, you can use the SCLogin module instead and configure the custom login buttons in there as well as different styling options.

I hope that helps answer your question, but if you need anything else, please let me know.

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

None
11 years 9 months ago #46827 by lyljov
Hi Alex,

I think you're referring to the mobile version of the site, not the mobile app development. I'm not sure how we can use tags on the mobile app (this one's for Android). Any thoughts?
The topic has been locked.
Support Specialist
11 years 9 months ago #46830 by alzander
Oh, sorry. I'm not sure about that. Are you using Joomla at all to load your site within the App? If not, there's not much we can do to help there. I don't know much about Objective C or Swift development that's done for an iPhone app. Many websites have great mobile views that work on all types of phones and that's what we'd recommend as well, but each site has it's own unique needs.

If you are using Joomla, let me know a bit more about what you're trying to accomplish. If not, I'm not sure how we can help, but if you have specific questions, just let me know.

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

None
11 years 9 months ago #46891 by lyljov
Hi Alex,

We are actually developing an Android mobile app. The way it works is we have a dedicated page (e.g. app.php) that processes $_GET contents. app.php can load the entire Joomla library if needed. My question is, how would this work if the user chooses to login using Facebook (i.e. clicks on the Facebook icon on the app to automatically connect the account currently signed in on the FB mobile app to our app)? I'm pretty sure there's a way to make JFBConnect work this way.
The topic has been locked.
Support Specialist
11 years 9 months ago #46902 by alzander
Are you using the Joomla user management system somewhere in your app.php file? JFBConnect could be called if your loading the entire Joomla *CMS*. We'd need more than just the framework to be loaded, because we rely on the Session storage, User Manager, Plugin System and various other aspects that are only a part of the CMS, which is built on top of the Joomla framework.

If you're using Joomla's CMS under the app.php file, you should be able to call our login code, like:
index.php?option=com_jfbconnect&task=login.authenticate&provider=facebook
Then, the user will be logged into the CMS and you can do whatever you want with the JUser object to authenticate into your own system or whatever you're doing.

I hope that helps explain some things, but I honestly think there's a bit more work there than you might think. I could be wrong though.

Thanks,
Alex
The topic has been locked.