Update facebook status with curl
Collapse
X
-
Facebook will not ban such users. Infact, u can achieve the same using wget in client side program. If u know C with some sockets u can make a similar POST method to achieve this. Make sure u include browser id string else FB might generate a unsupported browser page instead..!
Leave a comment:
-
i hear facebook will ban accunts but my account never banned. and why not login? because i use it on my site to show users update on facebook i sure cannot login copy paste my users update manually all the time :-)
Leave a comment:
-
I used this before, the problem here is the facebook security always asking because my server is not in my couuntry.
Leave a comment:
-
lol nice idea but facebook will now ban those accounts who are using services somthing like this one, why dont just login to your facebook account and update all you want, its so easy isnt it? rather than using this stuffs
Leave a comment:
-
add this link much easier .
without the http:// below
facebook.com/share.php?u=http://yoursite.com <<<< edit yoursite.com to your site url
with it below
Login | Facebook
Leave a comment:
-
do not know free host, but make sure your safe mode is off and curl is enabled.
Leave a comment:
-
Update facebook status with curl
update ur facebook status without logging into facebook.
if anyone mods it share here.Code:$username = "@yahoo.com"; $password = "pass"; // do login to facebook $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://login.facebook.com/login.php?m&next=http://m.facebook.com/home.php"); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_POSTFIELDS, "email=" . $username . "&pass=" . $password . "&login=Log In"); curl_setopt($curl, CURLOPT_ENCODING, ""); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd() . '/cookies_facebook.cookie'); $curlData = curl_exec($curl); curl_close($curl); // do get post url $urlPost = substr($curlData, strpos($curlData, "action=\"/a/home") + 8); $urlPost = substr($urlPost, 0, strpos($urlPost, "\"")); $urlPost = "http://m.facebook.com" . $urlPost; // do get some parameters for updating the status $fbDtsg = substr($curlData, strpos($curlData, "name=\"fb_dtsg\"")); $fbDtsg = substr($fbDtsg, strpos($fbDtsg, "value=") + 7); $fbDtsg = substr($fbDtsg, 0, strpos($fbDtsg, "\"")); $postFormId = substr($curlData, strpos($curlData, "name=\"post_form_id\"")); $postFormId = substr($postFormId, strpos($postFormId, "value=") + 7); $postFormId = substr($postFormId, 0, strpos($postFormId, "\"")); // do update facebook status $statusMessage = "ok i just updated my facebook status without logging into my account :-)"; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $urlPost); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, "fb_dtsg=" . $fbDtsg . "&post_form_id=" . $postFormId . "&status=" . $statusMessage . "&update=Update Status"); curl_setopt($curl, CURLOPT_ENCODING, ""); curl_setopt($curl, CURLOPT_COOKIEFILE, getcwd() . '/cookies_facebook.cookie'); curl_setopt($curl, CURLOPT_COOKIEJAR, getcwd() . '/cookies_facebook.cookie'); $curlData = curl_exec($curl); curl_close($curl); echo "Your Facebook status already updated with '" . $statusMessage . "'";
Tags: None
i hve used it for sometime. my account stil not banned. but yes better to use their api than to be using this method.
Leave a comment: