Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Allows you to easily find mutual twitter followers between two users

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Rakefile
Octocat-spinner-32 twitter-friends.gemspec


Gem allows you to find a list of mutual twitter friends between two users. Everybody must have a 'friend' relationship, i.e. in a triangle of three individuals, they must each follow and be followed by each other.


Add this line to your application's Gemfile:

gem 'twitter-friends'

And then execute:

$ bundle

Or install it yourself as:

$ gem install twitter-friends


Get an array of mutual followers "paulbirch99", "mhallsmoore" => [24870588, 69150555, 573019880, 119676687, 490555053, ...]

Select a random mutual friend and return a twitter user instance

TwitterFriends.random_connection "paulbirch99", "mhallsmoore" => #<Twitter::User:0x007fc983a4a7f0 ...> 


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.