Any tutorials or sample code? I just want to extract a timeline and place it on a site


#1

Hi all,

After fighting with the various (outdated) oAuth libraries that were linked to on the developer site, I have finally thrown in the towel and am now asking for assistance here. Do forgive me if I sound somewhat frustrated/agitated because I really am.

I’m currently handling a project for a client where they would like to place a twitter timeline on their front page.
If they weren’t so particular about the look and feel of the feed, I would just grabbed the new embedded timeline JS code and dumped it in there.
The next logical solution would be to grab the timeline/feed out via the API and then manipulate the text strings as required.

Of course, now that Twitter has moved on to ver 1.1 of oAuth, I can’t use this any more:
http://api.twitter.com/1/statuses/user_timeline.json?screen_name=<insert_name_here>

It’s just a read-only operation. I seriously don’t understand why there is a need for oAuth. I said the same thing last year when Facebook did the same thing, but things haven’t changed then. At least their implementation was so much easier.

The server that the client’s site is deployed on run ASP.NET. I think. A very unsafe Javascript solution would be acceptable also as I can find a way to stuff everything into the backend so long as I have some form of working code to refer to.

Long story short, is there anyone who can help me? Please?


#2

Hi,

LINQ to Twitter supports Twitter API v1.1, including ASP.NET Web Forms and MVC: http://linqtotwitter.codeplex.com/

The API is documented (including a FAQ to help with debugging OAuth) and I have samples at the following location:

The downloadable source code also has many samples and I have a discussion forum for support.

The best approach would be to get samples running to ensure you have everything set up. Then take what you need to start building your own implementation.

Joe


#3

If i want work with drupal without the dedicated module?..where can i find about a tutorial??
help me…


#4

@Hashimoto_Ryuji You can style Embedded Timeline in your own CSS.

I highly recommend Joe Mayo’s Linq2Twitter, I’ve been using that myself for years.

Here’s my own working ASP.NET demo which you can download. The demo has one class using Linq2Twitter and another uses raw WebRequest:

http://www.timacheson.com/Blog/2013/jul/twitter_api_proxy

My example also includes an API proxy, so you can use Twitter in JavaScript again just like API 1.0 with no oAuth needed.


#5

References error occuring


#6

this page http://linqtotwitter.codeplex.com/wikipage?title=LINQ% 20to% 20Twitter% 20Samples is pending removal


#7

Hi,
I wanted to read the hashtag on search request… can u please send me sample code in asp.net web forms (vb code)

Thank you and regards


#8

Hi

This project on Github has ASP.net sample code on using the twitter API. It uses a web service to get the JSON data and processes the JSON using javascript.