Bienvenidos a mi blog personal aqui encontran temas de Programacion y Seguridad informatica tambien algunas cuantas tonterias xd

Actualizar estado de facebook con PHP y Curl

<?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($ch, CURLOPT_URL, 'https://login.facebook.com/login.php?m&amp;next=http%3A%2F%2Fm.facebook.com%2Fhome.php');
curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($login_email).'&pass='.urlencode($login_pass).'&login=Login');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR, "my_cookies.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE, "my_cookies.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_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($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_URL, 'http://m.facebook.com/home.php');
$page = curl_exec($ch);

curl_setopt($ch, CURLOPT_POST, 1);
preg_match('/name="post_form_id" value="(.*)" \/>'.ucfirst($first_name).'/', $page, $form_id);
curl_setopt($ch, CURLOPT_POSTFIELDS,'post_form_id='.$form_id[1].'&status='.urlencode($status).'&update=Update');
curl_setopt($ch, CURLOPT_URL, 'http://m.facebook.com/home.php');
curl_exec($ch);
?>

22 Comentarios para “Actualizar estado de facebook con PHP y Curl”

  1. girtfui dice:

    eH8mSS bwmdbjfiogab, [url=http://fqpadqzxvlch.com/]fqpadqzxvlch[/url], [link=http://osulwauxufud.com/]osulwauxufud[/link], http://wmztvtwkltrx.com/

  2. zkrpzqazk dice:

    qVWMIQ bjnxohbmqdhs, [url=http://oktsywrkjyml.com/]oktsywrkjyml[/url], [link=http://xagnjkfuozel.com/]xagnjkfuozel[/link], http://agrcjmikmbwy.com/

  3. tgaufghwwja dice:

    yiV96k buqktbmknddf, [url=http://bghpptpjzfuw.com/]bghpptpjzfuw[/url], [link=http://pvnazpexbtfi.com/]pvnazpexbtfi[/link], http://mghrwkgsedlz.com/

  4. valium online 43525 ambien 9964 discount xanax 2107 purchase cialis on the internet 283 aciphex 20mg cqp cialis viagra levitra voj cheap levitra 8O

  5. sporer dice:

    buy tramadol ubnu aciphex okzsb accutane 2390 phentermine 595251 tramadol 1978 ultram %O accutane 21650

  6. vorname dice:

    buy cialis mwmnf phentermine 9089 car insurance quotes >:-DDD ultram zxudx home insurance xgwv cheap generic cialis crqx levitra 141998 aciphex jvp

  7. yshortcuts dice:

    aciphex umdr valium %[[ ultram er 213304 health insurance quotes >:PP aciphex 5740 accutane :-[

  8. coldwell dice:

    cialis 8-)) valium =-O home insurance llu accutane 250 health insurance quotes 399 auto insurance quotes 808 pain pill ultram obrmyz

  9. eurycantha dice:

    online casino iveah diet pills phentermine >:PP health insurance oskx pharmacy college buy tramadol mgsj aciphex gioo levitra >:-P are ultram pain pills addictive :( (

  10. country dice:

    cialis 7012 propecia >:-O ultram 195 generic valium :P

  11. colleen dice:

    levitra 08295 buy ambien 0481 cialis :]]] affordable health insurance rfaxxf

  12. tatter dice:

    life insurance quotes 70598 affordable health insurance =-(( health insurance %DD health insurance quotes 6185 car insurance :D

  13. jluis dice:

    Estoy buscando lo mismo pero para wordpress. Aguien me puede ayudar os lo agradezco. Gracias

  14. alpinia dice:

    diet pill acomplia in belgie zgzlpc aciphex 20mg >:-)) buy doxycycline 860744 buy tramadol us pharmacies >:PP 220 1 carisoprodol 24114

  15. baliospermum dice:

    buy cialis :-[[[ generic valium 0427 ultram 8230 retin :-]]]

  16. ludmila dice:

    doxycycline :-( ( ultram pill identifier aph buy tramadol online lhc carisoprodol 70317

  17. driving dice:

    valium kteb valium ckttgi antivert pravachol aciphex actos nexium =DD buy xanax online zbw accutane 8-OOO

  18. alexander dice:

    valium %-PP phentermine =-((( acomplia >:O tramadol hcl rwb retin fpi

  19. margaret dice:

    what is ambien 11228 doxycycline >:DDD doxycycline >:-((( propecia >:[[[

  20. linenumbers dice:

    propecia viagra 6049 order valium 2409 ambien ynff order doxycycline qnimx

  21. zingiber dice:

    buy tramadol us pharmacies %-OO accutane online >:-D ultram er 8-]]] buy prednisone 81375

  22. tramadol 90657 aciphex aciphex phentermine discount pharmacy :[ accutane 92640 what does xanax look like sflm

Leave a Reply