Forum: Ruby Using Mechanize gem to automate some tasks on Facebook

Posted by Bao Trung Tran Nguyen (Guest)
on 2013-02-21 12:01
(Received via mailing list)
Dear friends,
I've recently worked with Facebook Automation. I've tried Mechanize gem 
and
I am able to login into Facebook but I stuck here T.T
I tried to post on facebook but can't find anyway to do that. Can you 
guys
give me any ideas?

This is my source code for login into Facebook:
https://github.com/csigi/learningruby/blob/master/... 
(sorry
for the confused file name, it is actually Facebook not Google)

Thank you very much ;)
Posted by Joel Pearson (virtuoso)
on 2013-02-23 11:11
It should just be a matter of finding the elements and setting them 
correctly. Exactly what errors are you getting?
Posted by Bao Trung Tran Nguyen (Guest)
on 2013-02-23 12:37
(Received via mailing list)
Yes, It's exactly I could not find element for posting on my wall.


2013/2/23 Joel Pearson <lists@ruby-forum.com>
Posted by Joel Pearson (virtuoso)
on 2013-02-23 14:27
On mine it's text_area, id=u_0_s, name=xhpc_message_text
Depending what browser you're using you can inspect elements (On Firefox 
I use the Firebug extension) and find out all their details. Then you 
can use their identifiers to locate them.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.