Chào mừng!

Bằng cách đăng ký với chúng tôi, bạn sẽ có thể thảo luận, chia sẻ và nhắn tin riêng tư với các thành viên khác trong cộng đồng của chúng tôi.

Đăng ký ngay!
  • Chào Khách,
    Bạn cần liên hệ với admin ??? ZALO & TELEGRAM

Share Share Code Bot Tương Tác Bằng Cookie ( Ae Tự Lấy Api Tích Hợp Vào Web Nhé)

  • Thread starter Lê Thế Tân
  • Ngày gửi
L

Lê Thế Tân

Code PHP :
Mã:
<?php
 
$cookie = ''; // thêm cookie vào đây
 
$content = auto('https://mbasic.facebook.com/home.php?sk=h_chr', $cookie);
 
preg_match('#target" value="(.+?)"#is', $content, $id_user);
 
$id_user = $id_user['1'];
 
preg_match('#fb_dtsg" value="(.+?)"#is', $content, $fb_dtsg);
 
$fb_dtsg = $fb_dtsg['1'];
 
if (preg_match_all('#ft_ent_identifier=(.+?)&#is', $content, $story)) {
 
$datapost = file_get_contents('idpost.log');
 
for ($i=0; $i<count($story['1']); $i++) {
echo count($story['1']);
$id_stt = $story['1'][$i];
 
$comment = array('tương tác nek ?', 'iu wa ?', 'yêu thích ?', 'haha haha ?'); // nội dung cmt
 
$cmt = $comment[rand(0, count($comment)-1)];
 
if (strpos($datapost, $id_stt) == 0) {
 
$reaction = auto('https://mbasic.facebook.com/reactions/picker/?ft_id=' . $id_stt . '&av=' . $id_user, $cookie);
 
preg_match_all('#a href="(.+?)"#is', $reaction, $like);
 
auto('https://mbasic.facebook.com' . $like['1'][rand(0, 5)], $cookie, 'fb_dtsg=' . $fb_dtsg . '&reaction_type=' . rand(0, 5));
 
auto('https://mbasic.facebook.com/a/comment.php?ft_ent_identifier=' . $id_stt . '&av=' . $id_user, $cookie, 'fb_dtsg=' . $fb_dtsg . '&comment_text=' . urlencode($cmt));
 
echo 'Done ' . $id_stt . ' comment ' . $cmt . ' <br>';
 
$data = fopen('idpost.log', 'a');
fwrite($data, $id_stt . "\n");
fclose($data);
 
}
 
}
 
}
 
function auto($url, $cookie, $post = '') {
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_USERAGENT, 'NokiaC3-00');
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIE, $cookie);
if ($post) curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}
 
?>
Trang Cá Nhân : https://www.facebook.com/lethetanbro
 
Tham gia
8/4/19
Bài viết
155
Lượt Thích
15
Coins
2,150
Code PHP :
Mã:
<?php

$cookie = ''; // thêm cookie vào đây

$content = auto('https://mbasic.facebook.com/home.php?sk=h_chr', $cookie);

preg_match('#target" value="(.+?)"#is', $content, $id_user);

$id_user = $id_user['1'];

preg_match('#fb_dtsg" value="(.+?)"#is', $content, $fb_dtsg);

$fb_dtsg = $fb_dtsg['1'];

if (preg_match_all('#ft_ent_identifier=(.+?)&#is', $content, $story)) {

$datapost = file_get_contents('idpost.log');

for ($i=0; $i<count($story['1']); $i++) {
echo count($story['1']);
$id_stt = $story['1'][$i];

$comment = array('tương tác nek ?', 'iu wa ?', 'yêu thích ?', 'haha haha ?'); // nội dung cmt

$cmt = $comment[rand(0, count($comment)-1)];

if (strpos($datapost, $id_stt) == 0) {

$reaction = auto('https://mbasic.facebook.com/reactions/picker/?ft_id=' . $id_stt . '&av=' . $id_user, $cookie);

preg_match_all('#a href="(.+?)"#is', $reaction, $like);

auto('https://mbasic.facebook.com' . $like['1'][rand(0, 5)], $cookie, 'fb_dtsg=' . $fb_dtsg . '&reaction_type=' . rand(0, 5));

auto('https://mbasic.facebook.com/a/comment.php?ft_ent_identifier=' . $id_stt . '&av=' . $id_user, $cookie, 'fb_dtsg=' . $fb_dtsg . '&comment_text=' . urlencode($cmt));

echo 'Done ' . $id_stt . ' comment ' . $cmt . ' <br>';

$data = fopen('idpost.log', 'a');
fwrite($data, $id_stt . "\n");
fclose($data);

}

}

}

function auto($url, $cookie, $post = '') {
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_USERAGENT, 'NokiaC3-00');
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_COOKIE, $cookie);
if ($post) curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}

?>
Trang Cá Nhân : https://www.facebook.com/lethetanbro
hóng bro nào chạy nổi 1 ngày live =))))
 
Top Bottom
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock
No Thanks