Phishhose's Twitter hashtag not working

I am trying to search for hashtags on twitter using Phirehose. I am using this code:

$sc = new FilterTrackConsumer(OAUTH_TOKEN, OAUTH_SECRET, Phirehose::METHOD_FILTER);
    $sc->setTrack(array('selfie'));
    $sc->consume();

      

I am not getting any results using this code. What am I doing wrong here? I want to find all twitter for the specified hashtags.

Hope you can help me here.

+3


source to share


1 answer


What you have is correct. See Twitter API. Show all tweets with a specific hashtag? where it says "selfie" must match "#selfie", "@selfie", "Selfie", even " http://selfie.com/

"



It looks like you are using filter-track.php from the examples directory? Have you completed all four definitions and made sure they are correct? Make sure you see error messages (for example, they might be somewhere in / var / log or syslog or something).

0


source







All Articles