Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8194521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:51:06+00:00 2026-06-07T04:51:06+00:00

I’ve gone through literally every single tutorial there is about using the twitter api

  • 0

I’ve gone through literally every single tutorial there is about using the twitter api for WP7. It’s my first time using oauth and it can quite confusing. I’m trying to make it so my users can tweet a message and a picture. I went through this tutorial on oauth and several other ones (but am using this one atm):

http://sudheerkovalam.wordpress.com/2010/08/28/a-windows-phone-7-twitter-application-part-1/#comment-251

Also found some great help on stackoverflow about posting photos here:

Upload image directly to twitter

But for the authentication portion described in the blog post above I keep on getting a “KeyNotFoundException” on the line “OAuthTokenKey = parameters["oauth_token"];” I’ve tried to figure it out but can’t come up with anything being my first time doing this. There doesn’t seem to be much help anywhere else because every tutorial is uses different techniques that are hard to put together, so I came to you guys. If you know a fix, please let me know! Or if you know of a recent tutorial out there that works great right now please let me know!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:51:09+00:00Added an answer on June 7, 2026 at 4:51 am

    I updated the code at Upload image directly to twitter for the LINQ to Twitter sample, repeated here for convenience:

        private void PostButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(TweetTextBox.Text))
                MessageBox.Show("Please enter text to tweet.");
    
            ITwitterAuthorizer auth = SharedState.Authorizer;
            if (auth == null || !auth.IsAuthorized)
            {
                NavigationService.Navigate(new Uri("/OAuth.xaml", UriKind.Relative));
            }
            else
            {
                var twitterCtx = new TwitterContext(auth);
    
                var media = GetMedia();
    
                twitterCtx.TweetWithMedia(
                    TweetTextBox.Text, false, StatusExtensions.NoCoordinate, StatusExtensions.NoCoordinate, null, false,
                    media,
                    updateResp => Dispatcher.BeginInvoke(() =>
                    {
                        HandleResponse(updateResp);
                    }));
            }
        }
    

    There’s a sample on this page that you can load and test:

    http://linqtotwitter.codeplex.com/wikipage?title=LINQ%20to%20Twitter%20Samples

    I think part of the problem might have been that I posted a synchronous sample on the previous page, which works with client and Web apps, but isn’t appropriate for WP7.

    An important tip when doing OAuth in Windows Phone is that you must set the clock on the emulator to your current time. Watch the time zone too, which can throw things off. OAuth uses a time stamp that must be in sync with the Twitter Server.

    I also recently fixed a couple problems related to recent changes in Twitter, so if you run into problems on other queries, the downloadable source is here, where you can get the latest changes:

    http://linqtotwitter.codeplex.com/SourceControl/list/changesets

    Joe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
I am reading a book about Javascript and jQuery and using one of the
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I have thousands of HTML files to process using Groovy/Java and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.