Jump to content

Is it possible to save a facebook session into a database?


Mok

Recommended Posts

This is a theoretical question. So I won't need any code. Here is an example situation: 

User signs up for website with a username and password. User connects facebook account. 

Can I make it so everytime they log in, their facebook logs in too? 

Am I completely getting it wrong? 

Thanks, 

Nick

Link to comment
Share on other sites

  • 4 weeks later...

nope , as the password is not given / or use of Facebook passwords is unethical in making any Facebook app or api connecting Facebook,  i am not currently updated with the technical details but that is how it goes, once the cookies expires the user have to log in again, although , if they are already signed in , you could make them online in messenger etc. 

Link to comment
Share on other sites

You can't log someone into Facebook from a third party website log on procedure.

 

What you can do is the opposite. Allow a user to log on to your website using their Facebook username / password. You can read up on how to do this via the FB developers docs. This would log users into both systems.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.