0

I'm using the new version of tweetsharp api (v2) and i've had some problems with implementation on wp7...

i'm developping one app that use this api for tweet phrases to user account who's use my application...

so to configure the twiter user account i save the login and password to... when user wants to tweet i get access to his account and tweet that phrase...

My problem is how to make the login to twitter account... i try this but it's not woking....

    private void button1_Click(object sender, RoutedEventArgs e)
       {
        var service = new TwitterService(consumerKey, consumerSecret);
        Action<OAuthAccessToken, TwitterResponse> act = new Action<OAuthAccessToken, TwitterResponse>((a, b) => Result(a, b));
        try
        {
            service.GetAccessTokenWithXAuth(username,password,act);
        }
        catch (Exception) {
        }
    }

    private void Result(OAuthAccessToken a, TwitterResponse b)
    {

    }

I've read the Api v2 documentation but it's diferent than my method because some methods are new and different than the documentation reports....

thanks very much for help...

2 Answers 2

1

stab- have twitter ok'd you for xAuth? Apparently, it's only permissible if your app/apiKeys have been whitelisted for it.

1
  • My app/apiKeys are ok because i've one iphone aplications that it perfectly with those keys... i think that i dont know how does it work... the documentation doesn't help very much....
    – jovem
    Commented Jan 20, 2011 at 19:31
0

Read this: https://dev.twitter.com/docs/oauth/xauth

Your other apps for iPhone may have used regular OAuth and not xAuth. Like dethSwatch said, Apps have to be approved by Twitter in order to use xAuth.

Only caveat with xAuth is you do not get access tokens to direct messages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.