Reputation: 929
I'm am using LinqToTwitter in my application to gather tweets. For testing I now retrieve some public tweets and noticed text of tweets go missing:
Tweet in my application:
Original tweet:
Notice t.co/czD2e7Z3q1 in my application links to the original tweet and because the tweet text + t.co link would exeed the 140char limit the tweet text is shortend and ... is added.
Currently I retrive tweets using this code:
var srch = (from search in twitterCtx.Search
where search.Type == Twitter.SearchType.Search &&
search.Query == "twitter" &&
search.Count == 100 &&
search.GeoCode == geocode &&
search.IncludeEntities == true
select search).SingleOrDefault();
Is there a way I can get the original tweet text without the t.co link at the end?
Upvotes: 0
Views: 296
Reputation: 7513
I recently added extended tweet support to LINQ to Twitter. Here's the beta on NuGet: LINQ to Twitter v4.2.0 Beta 2.
Tip: You'll need to check the pre-release box in the VS NuGet GUI to find it.
Upvotes: 2
Reputation: 99
If you want it via the API, you will have to wait till the new changes outlined on dev.twitter are available.
Or, if you want an "ugly but works" solution today, you can just scrape twitter.com/<@user>/status/tweetid
to get the full text of the tweet.
Upvotes: 1