Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Facebook login

by Cicatrix (Novice)
on Mar 01, 2011 at 12:25 UTC ( [id://890742]=perlquestion: print w/replies, xml ) Need Help??

Cicatrix has asked for the wisdom of the Perl Monks concerning the following question:

How to login to Facebook and access my profile details, like friends groups and self-status update ?

Replies are listed 'Best First'.
Re: Facebook login
by marto (Cardinal) on Mar 01, 2011 at 12:42 UTC

    If your intention is to automate this you'd be in violation of their terms of service.

      Reading through the terms of service, I didn't see any ban on automating access to your personal account for non-commercial reasons. I do see some very clear rules about the use of user data. You can't resell data received from facebook even with the user's permission. Also you must agree to delete any user information that facebook or a user asks you to delete.

      What clauses did you have in mind?

        Under 'Safety':

        "2. You will not collect users' content or information, or otherwise access Facebook, using automated means (such as harvesting bots, robots, spiders, or scrapers) without our permission."

Re: Facebook login
by jethro (Monsignor) on Mar 01, 2011 at 12:42 UTC

    if the information on facebook is accessible without javascript (just turn of javascript and check if you see the relevant information) then one of the best modules to use is WWW::Mechanize

    If you need javascript then you either have to decode how the javascript gets its information (basically that is done through http accesses as well, but you need to find out the adresses). Or you can use WWW::Mechanize::Firefox which uses the browser as javscript engine

Re: Facebook login
by bduggan (Pilgrim) on Mar 01, 2011 at 14:05 UTC
Re: Facebook login
by Cicatrix (Novice) on Mar 01, 2011 at 13:26 UTC
    i want to automate updating my status and other stuffs related to my own profile. not accessing other profiles or info related to others. can i?? or should not i?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://890742]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found