Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mobile Website Facebook Login using Facebook App for login details

Using a web browser e.g. Chrome on Android, if a mobile website requires a user to be logged in to Facebook and they are not, the browser will ask for Login details even though the phone may be logged in to Facebook via the Facebook native App. Is there any way to get details from the Facebook App without the user having to log in again?

like image 433
Spencer Avatar asked Jul 08 '13 11:07

Spencer


People also ask

How can I use Facebook to log into my website?

You need a Facebook app for your site. Go to https://developers.facebook.com/apps/ and click on the "Create New App" button. I changed the data-show-faces attribute to false because with it set to true the logout button will not render when the user is logged in. Show activity on this post.

What is a Facebook login app?

Facebook Login lets people quickly and easily create an account in your app without having to set (and likely later forget) a password. This simple and convenient experience leads to higher conversion.


2 Answers

If you want to login in website in a browser, using Facebook account from Facebook app - it is impossible, without intermediary application, or service. And even with it, I don't think, that you can get user login data.

Other approach - is try to launch Facebook app from your site, and show site from it, but again, you can't login to it, using app.

Why? Because the app, holds only token data, and nothing more. You can't get other information, like password, or email. Also, the work of browser, that save cookies and the app, that save token is different. You can't connect them together.

like image 184
VadymVL Avatar answered Oct 27 '22 07:10

VadymVL


Clearly speaking it is not possible using website in browser.

Even it is also not possible if you develop any android app, the reason is that the facebook app will not share any data to any other app (even if it is running on the same device).

I also don't think that launching the facebook app from browser will be feasible for you, as you just want to use the facebook login system and then want the users back on your website (and again facebokk will not send any data to your web or app even if it is launched from your web or app).

like image 31
Rivu Chakraborty Avatar answered Oct 27 '22 09:10

Rivu Chakraborty