Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: Get previous tweets

$
0
0
HI marcoteodoro,

While I'm nowhere near as useful as Linvi,

I did try your code and it also returned nothing for me too.

But then I slightly changed by using my twitter account instead and it indeed returns the last 4 tweets with @kamehamehamehaa (my account) in them
 var searchQuery = Search.GenerateSearchTweetParameter("@kamehamehamehaa");
            searchQuery.MaximumNumberOfResults = 4;
            var results = Search.SearchTweets(searchQuery);
I believe the query is searching for tweets with "@mteodoro85" or "@kamehamehamehaa" in them rather than searching by user @mteodoro85 (or @kamehamehamehaa)

If this does not make sense, log into that twitter account and post a tweet saying "@mteodoro85" and then try your code again it should return one value.



What I'm trying to say is it is returning null because there are no tweets containing the phrase '@mteodoro85'

You could try the method .GetMentionsTimeline() which should retrieve any tweet directed at your account and not just containing the words '@mteodoro85'.

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>