I am using the api below to populate the loop below which works perfecly
$tweets = $twitter->get('https://api.twitter.com/1.1/search/tweets.json?q='.$queryString.'&count=400');
<?php foreach ($tweets->statuses as $key => $tweet) { ?>
<?=$tweet->name; ?><br/>
<img src="<?=$tweet->user->profile_image_url;?>" />
<?=$tweet->text; ?>
I then changed the API to
$tweets = $twitter->get('https://api.twitter.com/1.1/statuses/home_timeline.json?q='.$queryString.'&count=400');
but keep to getting this error Warning: Invalid argument supplied for foreach().
I think i have make a few changes to the foreach but i have no idea what to change.
Thanks you.