example_bot.rb

Path: example_bot.rb
Last Update: Tue May 15 11:33:23 -0400 2007

This Bot

This bot is an example of what FacebookBot can do. It logs into facebook with your provided credentials, and then proceeds to poke one of your friends at random, and then changes your status randomly. This is a good beginning to build your own bot.

Running Your Bot

Like so:

    ruby bot.rb

You can also see the parameters it accepts with:

    ruby bot.rb -h

But here are some good examples to follow:

    ruby bot.rb -e you@fb.edu --password=cool4
    ruby bot.rb -e test@test.edu

Required files

optparse   facebook_bot/facebook_bot  

Constants

OPTIONS = { :email => nil, :password => nil, :debug => false   default options

[Validate]