twitter.mentions

Updated on Tuesday, 18 December, 2012 - 12:26
Description: 

A list of the Twitter usernames mentioned in a Tweet.

Take care to use the correct operator with this target. As the examples show, use == if you are filtering for just one username and use in if you are filtering for a list of two or more usernames.

Examples: 

1.  Filter for Tweets that mention @datasift:

Note that the argument is "datasift" rather than "@datasift". Also, remember that the target is an array and we are filtering for just one value so we use the == operator (not contains).

2.   Filter for Tweets that mention @LadyGaga or @Beyonce:

The target is an array and we are filtering for a list of values so we use the in operator (not contains).

Notes: 

You cannot filter for usernames or links in the twitter.text target.

For example, suppose the original text of a Tweet is:

    "@datasift launched today! http://bitly.com/r6pmP0"

The Tweet will not match against this filter:

    twitter.text contains "@datasift"

    OR twitter.text subst "bitly"

It will match against this filter:

    twitter.text contains "launched today"

Resource Information

Target service: 
Twitter
Target object: 
Twitter: Tweet
Format: 
array(string)
Array: 
Yes
Always exists: 
No