How to store and use OAuth tokens in MySQL and PHP?

I'm using Abraham's twitteroauth library. I've been trying to store the oauth tokens from the twitter accounts that signed up for my Twitter app in a database and retrieve them in PHP so I can tweet something on all of the accounts. Help?

Thank you!

Answers


You have a single $_SESSION['access_token'];. If you want to deal with multiple accounts, then you will need to keep (and use) the access token for each of them.


Need Your Help

Robson tree traversal algorithm

binary-search-tree tree-traversal stackless

Can anyone explain the Robson algorithm for tree traversal? I'm having trouble understanding what the steps of the algorithm are.

jquery-datatables footer in a hidden div

jquery datatables

I am using jQuery-datatables (version 1.9) in a hidden div. It renders fine as long as I don't have a footer, but when I add a footer it is not displayed with proper widths.