Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read Twitter feeds

I've used this example to retrieve my twitter feeds however it has an error

The remote server returned an error: (400) Bad Request.

How can this be fixed?

like image 523
xscape Avatar asked Dec 28 '22 07:12

xscape


2 Answers

Consider using a library that abstracts all the parsing for you.

Try Twitterizer, a .NET library designed for quick and easy Twitter integration.

There is a large set of documentation on the Twitterizer API, and sample code. Perhaps get a feel for how others are using it by browsing the Twitterizer tag on StackOverflow.

like image 192
p.campbell Avatar answered Feb 08 '23 11:02

p.campbell


Have you tried manually going to "http://twitter.com/statuses/user_timeline/" + User + ".rss" in your browser, and seeing if you get a 400 error there? I'm guessing a typo in your user name when you call Twitter.Parse(UserName);

like image 36
SamStephens Avatar answered Feb 08 '23 12:02

SamStephens