Anyone knows anything about Twitter PHP API that supports PIN-based authorization? I need an infinite access token (one which will not expire) and i'm actually looking at two libraries:
I cannot get them work: i can call getAuthorizeUrl()
and get the PIN and the right callback to my step1.php
page; but then i'm stuck, and i don't know how to use the PIN submitted by the user. It seems that i need to set oauth_verifier
parameter of getAccessToken
, but all this stuff is undocumented.
Any help would be much appreciated.
The PIN should be used as the oauth_verifier
in getAccessToken
.
Maybe this will help. Assuming you get to the point where you get a PIN number displayed: 1. Copy PIN
Next, you should have a php script to validate the PIN: 2. http://yoursite.com/validate.php?pin=2263903 Do not expect a response in the browser; the results are in files (see next step)
get codes from directory -rw-r--r-- 1 beddoe beddoe 42 Nov 28 17:18 access_token_secret -rw-r--r-- 1 beddoe beddoe 50 Nov 28 17:18 access_token
edit your .php Add access token codes from above files