hi in my twitter if u post twitter message its showing this message:" Your
tweet could not be posted." I am using third party dll is twitterizer2.dll .
please let me know what i have to change in code

thanks
thyagarajulu

On Mon, Jan 24, 2011 at 11:31 AM, raja_sp <[email protected]> wrote:

> include 'lib/EpiCurl.php';
> include 'lib/EpiOAuth.php';
> include 'lib/EpiTwitter.php';
> include 'lib/secret.php';
>
> $twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
> $oauth_token = $_GET['oauth_token'];
>        if($oauth_token == '')
>          {
>                $url = $twitterObj->getAuthorizationUrl();
>                echo "<div style='width:200px;margin-top:200px;margin-
> left:auto;margin-right:auto'>";
>        echo "<a href='$url'>Sign In with Twitter</a>";
>        echo "</div>";
>          }
>          else
>          {
>                $twitterObj->setToken($_GET['oauth_token']);
>                $token = $twitterObj->getAccessToken();
>                $twitterObj->setToken($token->oauth_token, $token-
> >oauth_token_secret);
>                $_SESSION['ot'] = $token->oauth_token;
>                $_SESSION['ots'] = $token->oauth_token_secret;
>                $twitterInfo= $twitterObj->get_accountVerify_credentials();
>                $twitterInfo->response;
>
>                $username = $twitterInfo->screen_name;
>                $profilepic = $twitterInfo->profile_image_url;
>          }
>
>
> i am using this code, this line gets the oauth_token sent by twitter.
> $twitterObj->setToken($_GET['oauth_token']);
> $_GET["oauth_token"] must be unique for each user, but evry times the
> user logins it does change.
> how can i get a unique oauth_token for each user?any solution will be
> appreciated. thanx
>
> --
> Twitter developer documentation and resources: http://dev.twitter.com/doc
> API updates via Twitter: http://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> http://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> http://groups.google.com/group/twitter-development-talk
>

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to