Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coldfumonkeh/d7e94a4375ef9f3b5ccbb9f7a0d6b205 to your computer and use it in GitHub Desktop.
Save coldfumonkeh/d7e94a4375ef9f3b5ccbb9f7a0d6b205 to your computer and use it in GitHub Desktop.
Twitter access details
// When you have the details stored in the SESSION scope
application.objMonkehTweet.setFinalAccessDetails(
oauthToken = session['accessToken'],
oauthTokenSecret = session['accessSecret'],
userAccountName = session['screen_name']
);
// When you want to directly pass in the details
application.objMonkehTweet.setFinalAccessDetails(
oauthToken = 'jlwejfljfew-435434343',
oauthTokenSecret = '98908f9we08f09ew890fe09wfwef...',
userAccountName = 'whoever'
);
@coldfumonkeh
Copy link
Author

coldfumonkeh commented Apr 21, 2017

I think the main problem here is you were referencing the access token details directly like so: session['ewfewf809890f8ewfew'], which, unless you have values in the SESSION scope with those names, won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment