Topic: Interacting with Facebook using Ruby
Hello guys. I have been lurking in the forums for a while. This is the first time I have needed help that I could not find by googling. I have been tasked with using a ruby script. The basic idea is to have a method called 'setFacebookStatus'.
This method will look like the following:
def setFacebookStatus(username, password, status_text)
#log into facebook using the supplied details
#if the user logs in properly
#update the logged in users status
#log out of the user's account
#raise an error
I have noticed that if I was logged in, I could do a post request to:
with the parameters:
['status' => @status_message, 'post_form_id' => @post_form_id]
I have even found a perl script that does something similar:
I am familiar with ruby as a language and have been using rails for a while now. However, this is the first I have come across having to do something like this.
If anyone could help me with writing this code or at least point me in the right direction, I would really appreciate it.