Class FacebookBot
In: facebook_bot/facebook_bot.rb
Parent: Object

Oh, so you want to actually make your bot do something cool? What a novel idea! The gist of the bot is located somewhere towards the end of bot.rb. Here‘s a good example:

     fb = FacebookBot.new({:email => 'test@test.com', :password => 'test1234'})

From there you‘ll want to do something with your bot. Here‘s some more examples:

     fb.set_status 'likes pina-coladas..'
     fb.change_profile_picture 'cute-puppy.jpg'

etc etc. Wrap that stuff in a loop, put in a few sleeps, and you‘ve got yourself a FacebookBot. Look all all the FacebookBot methods (via modules) to see what you can do. Also check out the EXAMPLES file.

Methods

new  

Included Modules

FacebookHelper FacebookStatus FacebookLogin FacebookFriends FacebookWall FacebookPictures FacebookProfile FacebookGroups FacebookPoke

Constants

VERSION = '0.2'

Public Class methods

[Source]

    # File facebook_bot/facebook_bot.rb, line 36
36:   def initialize opts
37:     @opts = {:headers => {'Content-Type' => 'application/x-www-form-urlencoded',
38:                           'Cookie' => 'test_cookie=1',
39:                           'User-Agent' => 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3'}}.merge(opts)
40:     login
41:   end

[Validate]