Hi, I’m trying to create an application where users log in with twitter and facebook. I want to store their tokens in a database. So when the user logs in with facebook the next time they visit my site I can go to the database and retrieve the twitter tokens and set my own session to pull down the users latest tweets.
I’ve been using https://github.com/Lusitanian/PHPoAuthLib to set oauth for both services, but the library doesn’t offer a way to store set your own tokens.
My question is, is it possible to get a user to log in with twitter, retrieve their tokens, store them in a sql database and then the next time they log in with facebook I set a session with their twitter tokens and get their tweets?
I’ve asked this question on stackoverflow and other places, but I NEVER can get a response from people!
I would really like to know the answer and how to do this