Advertisement
janter13

Auto Invite FP FB

Nov 8th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2. $id_page = '1234567890';
  3. $cookie_curl = 'coker';
  4.  
  5. $list = auto('https://m.facebook.com/send_page_invite/?pageid='.$id_page.'&offset=0&count=5000&reference=public', $cookie_curl);
  6.  
  7. $data = explode('<a',$list);
  8. for($i=1;$i<= count($data);$i++){
  9. $link = substr($data[$i-1], strpos($data[$i-1], 'href=') + 6);
  10. $link = substr($link, 0, strpos($link, '"'));
  11. if(preg_match('/gfid=/',$link)){
  12. $link=str_replace('&amp;','&',$link);  
  13. auto('https://m.facebook.com'.$link);
  14. $ok[] =1;
  15. }
  16. }
  17.  
  18. echo count($ok);
  19.  
  20. function auto($url, $lib){
  21.   $curl = curl_init();
  22.   curl_setopt($curl, CURLOPT_URL,$url);
  23.   curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
  24.   curl_setopt($curl, CURLOPT_COOKIEFILE,$lib);
  25.   $ch = curl_exec($curl);
  26.   curl_close($curl);
  27.   return($ch);
  28.   }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement