finally i got the answer.
Here is what i have done for my site:
1.Create an app at https: //dev.twitter.com/apps
2.Then in a php file right down the following after downloading the oauth.php file:
require(“oauth.php”);
define (‘CONSUMER_KEY’, ‘____________________’);
define (‘CONSUMER_SECRET’, ‘____________________’);
define (‘ACCESS_TOKEN’, ‘____________________’);
define (‘ACCESS_TOKEN_SECRET’, ‘____________________’);
$api = new OAuth(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
//to get the user_id of all the users whom you are following
$raw = $api->get(‘https://api.twitter.com/1/friends/ids.json?screen_name=authenticated_user_screen_name’);
$response = @json_decode($raw, true);
$friends_ids=implode(‘,’,$response[‘ids’]);
$tweet_data_of_users_followed=$api->get(‘https://api.twitter.com/1/users/lookup.json?user_id=’.$friends_ids.’&include_entities=true’);
$get_friends_latest_tweets=@json_decode($tweet_data_of_users_followed, true);
The above($get_friends_latest_tweets) will return you the most recent tweets of users you are following.