Twitter API Consulting

Free open source code for Twitter API Engagement Programming


// Copyright (c) 2013 Adam Green. All rights reserved.
// See for licensing of this code.

function get_followers_not_friends($start,$results_per_page) {
	global $db;

	$query = "SELECT users.* 
		FROM followers, users
		WHERE followers.user_id NOT IN 
			(SELECT user_id
			FROM friends)
		AND followers.user_id = users.user_id
		ORDER BY users.followers_count DESC
		LIMIT $start, $results_per_page";

	return $db->select_array($query);

I'm a member of the #140dev Twitter development community - join us for free source code and tutorials: