You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Listening for multiple users is not supported. You’ll find that even if you start multiple streams for single users, Twitter will shut down connections.
I want to get all event of multiple users.
Using User stream API will get the event for the single user but want to get the event for multiple users.
This code is working fine for the single user.
TwitterStreamingApi::userStream()
->onEventUsers(function(array $event) {
if ($event['event'] === 'favorite') {
echo "Our tweet {$event['target_object']['text']} got favourited by {$event['source']['screen_name']}";
}
})
->startListening();
The text was updated successfully, but these errors were encountered: