Link to home
Start Free TrialLog in
Avatar of jeffiepoo
jeffiepooFlag for United States of America

asked on

Imbed Twitter Feed on webpage

Hey Experts,

I want to imbed twitter functionality into my webpage, and have it display the latest tweet from a user. Please tell me how to do this.

The following page: https://dev.twitter.com/docs/embedded-tweets 

seems to give information on how to get a specific tweet on the webpage, but not how to get the most recent tweet (updated) onto the webpage. It seems on all of the examples you are passing in an 'ID' that is the id of the specific Tweet.

Please help. Hopefully this will be simple for some of you to explain. Please go into detail, because when they say 'cache the response', I'm not sure how to do that.

I'm using MVC in C# (.NET 4.0)

Thanks for any help!

-Jeff
Avatar of James Williams
James Williams
Flag of United States of America image

http://search.twitter.com/search.json?q=selvol&include_entities=false&result_type=recent&rpp=1&show_user=true

Open in new window


result_type= recent
rpp = posts per page

Now it just needs to be decoded from Json.


Should be easy in C# .  I don't know C#
Selvol

Selvol
You could also use their RSS feed.  (I know, not official, but...)
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=USERNAMEHERE
Avatar of jeffiepoo

ASKER

selvol, how would I do it for this user?

https://twitter.com/MLARband

I didn't see anything in your code that was user specific.
http://api.twitter.com/1/statuses/user_timeline.rss?screen_name=MLARBand

p.s.  you don't need much code to develop a feed reader that will show you the latest item...
I need more time to test this out.
ASKER CERTIFIED SOLUTION
Avatar of jeffiepoo
jeffiepoo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Easiest solution was my own.