Hi!
I've got the twitter feed working on my site but I wondered how I would go about just showing specific tweets, for example if they have a specific hashtag.
I used to be able to do this on another CMS and was trying to work out out how to do it with Skybrud.Social but the examples I have found seem to be out of date.
// Make the request to the API
TwitterSearchTweetsResponse response = service.Search.GetTweets("#umbraco");
// Iterate through the tweets
foreach (TwitterStatusMessage tweet in response.Body.Statuses) {
Console.WriteLine(tweet.Text);
Console.WriteLine();
}
One of the problems with my package is that I haven't really had the time to write some proper documentation. I just launched a new site to sorta fix that (the site still lacks content), so you can see some further information on searching here:
http://social.skybrud.dk/twitter/endpoints/search/query-based-search/
Thanks Anders, that's great. I'll have a look at the site as well.
Great work on the package - works really well.
Would this search only pull back tweets with the hashtag which the user has posted or is this a full twitter search and it will show all tweets with a specific hashtag by anyone?
Show tweets with specific hashtag
Hi! I've got the twitter feed working on my site but I wondered how I would go about just showing specific tweets, for example if they have a specific hashtag. I used to be able to do this on another CMS and was trying to work out out how to do it with Skybrud.Social but the examples I have found seem to be out of date.
Any help / pointers would be great.
Thanks,
Hi Owain,
You can make the search like:
One of the problems with my package is that I haven't really had the time to write some proper documentation. I just launched a new site to sorta fix that (the site still lacks content), so you can see some further information on searching here: http://social.skybrud.dk/twitter/endpoints/search/query-based-search/
Thanks Anders, that's great. I'll have a look at the site as well. Great work on the package - works really well.
Would this search only pull back tweets with the hashtag which the user has posted or is this a full twitter search and it will show all tweets with a specific hashtag by anyone?
The search is made across all tweets, and not just the user.
If you want to limit the search to a specific user, I think you can use a query like
#umbraco from:abjerner
, but I haven't tested that.that works fine, you can also add more than one account in the search
This helped me out! Cheers both.
is working on a reply...