You will need the browser plugin to pull down the information from the address bar and the ajax plugin to both login to the app server side and request an user token. Visit How to log in to your app server side
for more info on how to set up your php files. It look overwhelming but it can easily be boiled down to just a few commands to work with the ajax plugin.
Hope that helps or at least points you in the right direction.
You can visit my app page at http://www.lockegames.com/relicsofyore if you want to see it in action. Once you accept the game it will log you in and show you a valid access token on the screen. I'll leave it up so you can see for a day or two while I start plugging away at some other aspects of the app. You will currently need to change the permissions parameter manually if you want to reload and see it work a second time.
It pulls the code variable down from the address which is used to get an access token, and it can only be used once. So if you leave the permissions set to one in the address bar it won't generate a new code which will kick up an error warning. lanceal2012-11-16 18:13:24