Note that there are some explanatory texts on larger screens.

plurals
  1. POXAML-Twitter Client. Get all Tweets from User
    primarykey
    data
    text
    <p>I will start out by saying I am new to building Windows 8 Applications. I recently downloaded the following XAML-Twitter Client Example:</p> <p><a href="http://code.msdn.microsoft.com/windowsapps/XAML-Twitter-Client-e343d336#content" rel="nofollow">http://code.msdn.microsoft.com/windowsapps/XAML-Twitter-Client-e343d336#content</a></p> <p>In the code it searches tweets by keywords using:</p> <pre><code>SyndicationFeed feed = await client.RetrieveFeedAsync(new Uri("http://search.twitter.com/search.rss?q=" + TweetSearch)); </code></pre> <p>"TweetSearch" being a string value that contains the keyword.</p> <p>I am trying to change this code to retrieve and display all tweets by a certain user but cannot quite get it to work. This is closest I have come is:</p> <pre><code>SyndicationClient client = new SyndicationClient(); //SyndicationFeed feed = await client.RetrieveFeedAsync(new Uri("https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=UserName")); model.Tweets.Clear(); foreach (var item in feed.Items) { _model.Tweets.Add(new Tweet { Name = item.Authors[0].Email, Message = item.Title.Text, Image = new BitmapImage(new Uri(item.ElementExtensions.First(element =&gt; element.NodeName == "image_link").NodeValue))}); } } </code></pre> <p>But I receive the error <code>"Specified argument was out of the range of valid values."</code></p> <p>On </p> <pre><code> foreach (var item in feed.Items) { _model.Tweets.Add(new Tweet { Name = item.Authors[0].Email, Message = item.Title.Text, Image = new BitmapImage(new Uri(item.ElementExtensions.First(element =&gt; element.NodeName == "image_link").NodeValue)) }); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload