1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook Status Updater

Discussion in 'FaceBook' started by gheli, Nov 22, 2009.

  1. gheli

    gheli Newbie

    Joined:
    Mar 19, 2009
    Messages:
    24
    Likes Received:
    19
    Wanna update your facebook status, but don't want to go to facebook.com, login, and finally being able to update your status? Simply save the following code on your server, define the variables, and voilĂ !
    PHP:
    <?PHP
    /*******************************
    *    Facebook Status Updater
    *    Christian Flickinger
    *    http://nexdot.net/blog
    *    April 20, 2007
    *******************************/
     
    $status 'YOUR_STATUS';
    $first_name 'YOUR_FIRST_NAME';
    $login_email 'YOUR_LOGIN_EMAIL';
    $login_pass 'YOUR_PASSWORD';
     
    $ch curl_init();
    curl_setopt($chCURLOPT_URL'https://login.facebook.com/login.php?m&amp;next=http%3A%2F%2Fm.facebook.com%2Fhome.php');
    curl_setopt($chCURLOPT_POSTFIELDS,'email='.urlencode($login_email).'&pass='.urlencode($login_pass).'&login=Login');
    curl_setopt($chCURLOPT_POST1);
    curl_setopt($chCURLOPT_HEADER0);
    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
    curl_setopt($chCURLOPT_SSL_VERIFYPEERfalse);
    curl_setopt($chCURLOPT_COOKIEJAR"my_cookies.txt");
    curl_setopt($chCURLOPT_COOKIEFILE"my_cookies.txt");
    curl_setopt($chCURLOPT_RETURNTRANSFER1);
    curl_setopt($chCURLOPT_USERAGENT"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3");
    curl_exec($ch);
     
    curl_setopt($chCURLOPT_POST0);
    curl_setopt($chCURLOPT_URL'http://m.facebook.com/home.php');
    $page curl_exec($ch);
     
    curl_setopt($chCURLOPT_POST1);
    preg_match('/name="post_form_id" value="(.*)" \/>'.ucfirst($first_name).'/'$page$form_id);
    curl_setopt($chCURLOPT_POSTFIELDS,'post_form_id='.$form_id[1].'&status='.urlencode($status).'&update=Update');
    curl_setopt($chCURLOPT_URL'http://m.facebook.com/home.php');
    curl_exec($ch);
    ?>
    Credit Goes To Author (Christian Flickinger)!
     
    • Thanks Thanks x 3
  2. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,884
    Likes Received:
    1,932
    Awesome share man, will this work with links or will it only post the link rather than the full title and description?

    Edit: I just tried this out but it doesn't seem to work?
     
    Last edited: Nov 22, 2009
  3. Esolutions1

    Esolutions1 BANNED BANNED

    Joined:
    Nov 12, 2011
    Messages:
    280
    Likes Received:
    15
    Really good information ....Like it
     
  4. MikeFlies

    MikeFlies Junior Member

    Joined:
    Jan 9, 2010
    Messages:
    132
    Likes Received:
    139
    i was going to pay someone $100 to code this kind of updater for me. I have a couple of pages that this would be a big help on... Thanks a lot kid
     
  5. backlinks1

    backlinks1 Junior Member

    Joined:
    Jul 13, 2011
    Messages:
    139
    Likes Received:
    43
    that look so good , let me try ! thanks for share !
     
  6. markhenry121

    markhenry121 Elite Member

    Joined:
    Oct 14, 2011
    Messages:
    2,149
    Likes Received:
    239
    It looks quite interesting will this work for me also let me try thanks for the share.
     
  7. hackgen

    hackgen Regular Member

    Joined:
    Sep 23, 2011
    Messages:
    350
    Likes Received:
    103
    Location:
    127.0.0.1
    Old code..

    Since 2007
    Mozilla 2.0 :confused:
     
  8. rulez05

    rulez05 Power Member

    Joined:
    Feb 3, 2011
    Messages:
    745
    Likes Received:
    142
    there's a plug in like this I saw it somewhere in warez forum can't remember the name I'm not really on facebook
     
  9. klaus

    klaus Registered Member

    Joined:
    Apr 7, 2007
    Messages:
    53
    Likes Received:
    5
    LOL. No way.

    Login is way much, I mean much more complex these days, with random parameters or device check, to name a few.
     
  10. artizhay

    artizhay BANNED BANNED

    Joined:
    Nov 21, 2010
    Messages:
    1,867
    Likes Received:
    1,335
    This is not even using the dynamic DTSG security code. I doubt it will work.
     
  11. marsgibson

    marsgibson Junior Member

    Joined:
    Aug 1, 2011
    Messages:
    109
    Likes Received:
    17
    still new for at least noobs ;) :cool:
     
  12. jocael75

    jocael75 Registered Member

    Joined:
    Mar 23, 2012
    Messages:
    56
    Likes Received:
    4
    nice trick ;)