looks like the url has been changed. i now have aother issue with xml.
var xmlUrl = new Uri(string.Format(_culture, "http://api.twitter.com/1/statuses/user_timeline/user_id={0} count={1}", userId, count));
XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
//load the xml response from twitter
using (var xr = XmlReader.Create(response.GetResponseStream(), settings))
{
xr.MoveToContent();
var xml = XDocument.Load(xr); //ERROR
An error occurred while parsing EntityName. Line 46, position 76.
i set the ProhibitDtd to false as i was getting dtd issue. now i can't see what the issue is...
dm007
Member
47 Points
106 Posts
twitter feeds on my webpage
Nov 05, 2012 11:35 AM|LINK
hey guys...
i would like to add a section on my home page that basically displays the latest twitter feeds.
can anyone guy me how to do this? does it require c# code?
ramiramilu
All-Star
95473 Points
14106 Posts
Re: twitter feeds on my webpage
Nov 05, 2012 11:42 AM|LINK
like this -
http://www.bytechaser.com/en/articles/k24dz6au23/integrate-twitter-into-aspnet-applications.aspx
Thanks,
JumpStart
dm007
Member
47 Points
106 Posts
Re: twitter feeds on my webpage
Nov 05, 2012 02:19 PM|LINK
thanks.
i think there is old code in there. i get 404 error. i am using a proper twitter username yet it's not finding it.
http://twitter.com/statuses/user_timeline.xml?screen_name=myuser
GetLatestMessages()
Error: The remote server returned an error: (404) Not Found.
any suggestion?
dm007
Member
47 Points
106 Posts
Re: twitter feeds on my webpage
Nov 05, 2012 04:02 PM|LINK
looks like the url has been changed. i now have aother issue with xml.
var xmlUrl = new Uri(string.Format(_culture, "http://api.twitter.com/1/statuses/user_timeline/user_id={0} count={1}", userId, count));
XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
//load the xml response from twitter
using (var xr = XmlReader.Create(response.GetResponseStream(), settings))
{
xr.MoveToContent();
var xml = XDocument.Load(xr); //ERROR
An error occurred while parsing EntityName. Line 46, position 76.
i set the ProhibitDtd to false as i was getting dtd issue. now i can't see what the issue is...