emoncms/event — pull request #21 by nathanchantrell (2013-11-16 21:50:35+00:00)
Title: Fix Twitter notifications

Fixed to work with Twitter API 1.1
Switched from tmhOAuth to J7mbo's twitter-api-php and added the time to each tweet so it isn't seen as a duplicate.

Maybe there is a better solution to the duplicate tweet issue but it is one I've used successfully elsewhere. It used to be that it only had to be different to that last tweet but that isn't always the case. Twitter say on duplicates: "We don't disclose the timeframe within which duplicative tweets are disallowed. It's not necessarily within a time period and may pertain more to the recent tweeting history of the account, or be a mixture of other factors."