Sign In
Password Recovery Register

Unfollow people we're following on Twitter which are not following us back.

A script to unfollow people we're following on Twitter which are not following us back, using the Abraham Williams TwitterOAuth PHP library.

get('friends/ids');
$aFollowing = $aFollowing->ids;

$aFollowers = $oTwitter->get('followers/ids');
$aFollowers = $aFollowers->ids;

foreach( $aFollowing as $iFollowing )
{
	$isFollowing = in_array( $iFollowing, $aFollowers );

	echo "$iFollowing: ".( $isFollowing ? 'OK' : '!!!' )."
"; if( !$isFollowing ) { $parameters = array( 'user_id' => $iFollowing ); $status = $oTwitter->post('friendships/destroy', $parameters); } } ?>

Comments

Login or Register to comment.


Embed Me!

Feel free to adjust iframe width and height according to your needs.

Here's how it will look like.