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_new_unfollowers($where,$start,$results_per_page) {
	global $db;

	$query = "SELECT follow_log.created_at AS date, users.* 
		FROM follow_log, users
		WHERE follow_log.user_id = users.user_id
		AND follow_log.event =  'unfollow'
		ORDER BY follow_log.created_at DESC
		LIMIT $start, $results_per_page";

	return $db->select_array($query);

Thanks, @140dev for the sweet open source API code.