Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to use the native facebook app to log into a mobile html5 app? On the iPhone

I'm trying to have my html5 site open the native iPhone Facebook app to authenticate users.

The site currently uses OAuth 2 on the server side - so it redirects everyone to the web version of Facebook. This is a problem because I dont want to force people to log in on a tiny keyboard.

Can you get the html5 app to open in Safari and authenticate through the native FB app?

If this is not possible with Facebook is it possible with Twitter apps? What is the experience like on android?

I do know that you can authenticate between a native iPhone app and the native Facebook app.

like image 835
alakin Avatar asked Aug 30 '12 21:08

alakin


People also ask

Is Facebook mobile app native or hybrid?

Facebook is an example of a hybrid app (more on this below). You can log into Facebook on your computer (web app) or download the app on your phone. Twitter and Evernote are also hybrid apps.

What is Facebook SDK for iOS?

The Facebook SDK enables: Facebook Login - Authenticate people with their Facebook credentials. Share and Send dialogs - Enable sharing content from your app to Facebook. App Events - Log events in your application.

What advantages do native apps have over HTML5 web apps?

Superior performance: A native app has full access to a phone's hardware resources and the app also interacts directly with the phone without the mediation of a web browser. This way native apps provide superior performance, which is more visible when rendering graphics and animation.


1 Answers

Yes you can do this just use the boilerplate code in facebook developers section of the site and following the guide exactly... I have tried this and it worked for me you just need to find a way to connect your oAuth to this...

like image 136
Ram G Athreya Avatar answered Oct 04 '22 21:10

Ram G Athreya