$ch = curl_init("http://api.twitter.com/1/statuses/user_timeline/nafhameducation.json");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$latest_tweet = curl_exec($ch);
$latest_tweet_id = $latest_tweet[0]->id_str;
curl_close($ch);
I'm using this code to get the ID of the latest tweet on my time line, However $latest_tweet_id returns an empty string, any idea why it's not getting what I need?