I think the reason you’re seeing the ‘fatal error’ is that the file thats MISSING is the file that’s displaying on the page. I’m calling an external library and instead of incorporating the library, it’s displaying it. here’s my code:
[php]<?php
session_start();
require_once(“twitteroauth/twitteroauth/twitteroauth.php”); //Path to twitteroauth library you downloaded in step 3
$twitteruser = “jdroberto”; //user name you want to reference
$notweets = 5; //how many tweets you want to retrieve
$consumerkey = “xxxxxxxxx”;
$consumersecret = “xxxxxxxxx”;
$accesstoken = “xxxxxxxxx”;
$accesstokensecret = “xxxxxxxxx”;
function getConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token, $oauth_token_secret) {
$connection = new TwitterOAuth($cons_key, $cons_secret, $oauth_token, $oauth_token_secret);
return $connection;
}
$connection = getConnectionWithAccessToken($consumerkey, $consumersecret, $accesstoken, $accesstokensecret);
$tweets = $connection->get(“https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitteruser."&count=”.$notweets);
echo json_encode($tweets);
echo $tweets; //testing remove for production
?>[/php]