[eluser]bertcarremans[/eluser]
Hi,
I am trying to display my last 3 tweets on my website. Unfortunately it does not work.
In my footer view I have the following code
Code:
$tweets = json_decode(file_get_contents('http://twitter.com/statuses/user_timeline/myname.json?count=3'));
foreach ($tweets as $tweet) {
echo '<div class="tweet-box">';
echo '<p>' . $tweet->text . '</p>';
echo '</div>';
}
I get the error
Quote:Severity: Warning
Message: file_get_contents(http://twitter.com/statuses/user_timeline/argodots.json?count=3): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
Does anyone have a solution for this?
Thanks!