Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Lists all the people you are following
require 'rubygems'
require 'twitter'
Twitter.configure do |config|
config.consumer_key = ""
config.consumer_secret = ""
config.oauth_token = ""
config.oauth_token_secret = ""
client =
friends = client.friend_ids.ids
puts "#{friends.size} friends"
friends.each do |f|
user = Twitter.user(f)
puts "#{user.screen_name} - #{}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment