DISQUS

Developer On Line: Using Perl Against Facebook - Part II: Status Updates

  • linosx · 11 months ago
    Any chance that your script works with the new FB UI or is this based on the old UI?
    Cheers
  • panefsky · 11 months ago
    If by the new UI you mean the "new.facebook.com" then yes, the code refers to that one. Have you encountered any problems?
  • linosx · 11 months ago
    yup, I mean new.facebook.com - was able to login but not set the
    status. tried hacking around with it really late at night but wasn't
    able to get it working.
  • panefsky · 11 months ago
    I didn't want to get it so early on the net, but well here it is.
    I uploaded the Facebook module on the
    http://drop.io/developeronline
    Search for the Facebot.pm.

    In order to set your status, just do the following..
    $user = Facebot::->new("MAIL","PASSWORD");
    $user->login;
    $user->fbk_set("STATUS","My new status is this...");

    That's it. Please provide some feedback when you are done.
  • linosx · 11 months ago
    Just got around to d/l'ing and setting it up. Works like a charm!
    Thanks very much!!
  • Brandon · 10 months ago
    I tried using your script from Part 1 but it keeps failing on the line:

    $response->content =~ /Incorrect Email/

    I saw that you asked if Crypt::SSLeay is installed. I can confirm that it is installed on my machine though just for good measure I tried to install it again. CPAN told me "Crypt::SSLeay is up to date (0.57)." but it still won't work. I even tried to just go ahead and run the above code to update my status but it didn't work.

    What is the password necessary for this drop.io page? Since the previous code isn't working I tried to get the Facebot.pm from the above link but it just redirects me to a page that asks for a password and I can't get past that.
  • panefsky · 10 months ago
    That is really weird. This used to have public access. I have contacted the company and I am awaiting for a response.

    I will let you know if something comes up.
    If you are in a hurry, drop me an email and I will send it attached.
  • Michael Sweeney · 8 months ago
    Is the Facebot.pm library still expected to work? I have it in place and it seems to login, but the only results I get back are the "Must be logged in" page. If I provide the wrong credentials it does complain properly.
  • panefsky · 8 months ago
    Hi Micheal,

    yes the script still works fine.
    Deleting the temp directory where the web pages cache is being kept.
    this will force the bot to renew them.
  • Jones · 7 months ago
    It doesn't really work :-)
    You can, out of the box, log in, and view your name.

    The problems are:

    1) You have to change the regexp that fetches the post_form_id.

    2) It says I have five friends, I have more.

    3) Setting the status through the guide does not work, it is missing a range of parameters

    4) Setting status does not work in Facebot.pm.
    When dumping the contents it says: (ID stuff canged)


    for (;;);{"error":0,"errorSummary":"","errorDescription":"","errorIsWarning":false,"payload":{"status":"NEW STATUS TEXT","markup":"NEW STATUS TEXT.","feed":null,"feed_tab":null,"today":1242889200,"today_display":"Today"},"onload":["if (window.Env) { Env[\"nctrlid\"]=\"1223hjsdf121212hdhsdfk\"; }","if (window.Env) { Env[\"nctrlnid\"]=\"\"; }","setCookie(\"made_write_conn\", \"1212121212\", 2000);"],"invalidate_cache":[0]}

    And it does not set the status.


    If anyone has any ideas on how to
  • Jones · 7 months ago
    Well, actually it does wirk ater some tweaking :-)

    So number 2) and 4) are striked, while 1) and 3) still hold true.
  • djacobs · 6 months ago
    What tweaks?