Cảnh báo các bạn dùng Token cho các trang tăng like Facebook rất dễ bị mất nick nha. Xác định là dùng xong mất nick đấy. Vì thế nên chúng ta tự sướng đi. Evergreen sẽ cung cấp cho các bạn code auto like dạo, thả tim free.
Hướng dẫn chạy code bằng XAMPP, lấy Token, ID Facebook tại đây
Code đã lỗi, sẽ cập nhật lại sau
I. Auto like, reactions trên News Feed Facebook
Link download/tải về file code thích tất cả status, ảnh, photos, video hiện trên News Feed Facebook:
1
|
https://drive.google.com/open?id=1tyWsr2CY0RjmK1V2VwHx24tw5u8-9T2E
|
Đã có phần loại trừ reactions những Profile, Groups, Fanpage được chọn
1. Code thả tim mọi bài hiển thị trên News Feed Facebook
File auto_reactions_newsfeed.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?php
ini_set(‘max_execution_time’, 0);
$token = “EAAA…”; //token full quyền
$limit = 3; //chỉnh số bài đăng của muốn lấy
$array_avoid = [“325886610898617”,“123”];//id nhóm, trang muốn tránh auto, viết như mình viết, ID đầu là của nhóm J2Team Community
$person_avoid = [“100001518861027”,“123”]; //id người
$links = “https://graph.facebook.com/me/home?order=chronological&limit=$limit&fields=id,from&access_token=$token”;
$curls = curl_init();
curl_setopt_array($curls, array(
CURLOPT_URL => $links,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false
));
$reply = curl_exec($curls);
curl_close($curls);
$data = json_decode($reply,JSON_UNESCAPED_UNICODE);
$datas = $data[“data”];
foreach($datas as $each){
$id_person = isset($each[“from”][“id”]) ? $each[“from”][“id”] : “”;
if(!in_array($id_person,$person_avoid)){
$id_lay = $each[“id”];
$split = explode(“_”, $id_lay);
$id_post = $split[0];
if(!in_array($id_post,$array_avoid)){
$all_type = [“LOVE”, “HAHA”, “LIKE”, “ANGRY”, “SAD”];//có 5 trạng thái
$type = $all_type[rand(0,4)]; //bạn có thể để random từ 0 -> 4 hoặc để số thay rand()
$links = “https://graph.facebook.com/$id_lay/reactions?type=$type&method=post&access_token=$token”;
$curls = curl_init();
curl_setopt_array($curls, array(
CURLOPT_URL => $links,
CURLOPT_RETURNTRANSFER => false,
CURLOPT_TIMEOUT => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false
));
curl_exec($curls);
curl_close($curls);
}
}
}
?>
|
2. Code thả tim, lưu lại bài đã thích
Đã tránh thích lại.
File auto_reactions_newsfeed_save_log.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<?php
ini_set(‘max_execution_time’, 0);
$token = “EAAA…”; //token full quyền
$limit = 3; //chỉnh số bài đăng của muốn lấy
$array_avoid = [“325886610898617”,“123”];//id nhóm, trang muốn tránh auto, viết như mình viết, ID đầu là của nhóm J2Team Community
$person_avoid = [“100001518861027”,“123”]; //id người
$host = “localhost”;
$user = “root”;
$password = “”;
$database = “auto”;
$con = mysqli_connect($host, $user, $password, $database);
$links = “https://graph.facebook.com/me/home?order=chronological&limit=$limit&fields=id&access_token=$token”;
$curls = curl_init();
curl_setopt_array($curls, array(
CURLOPT_URL => $links,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false
));
$reply = curl_exec($curls);
curl_close($curls);
$data = json_decode($reply,JSON_UNESCAPED_UNICODE);
$datas = $data[“data”];
foreach($datas as $each){
$id_person = isset($each[“from”][“id”]) ? $each[“from”][“id”] : “”;
if(!in_array($id_person,$person_avoid)){
$id_lay = $each[“id”];
$split = explode(“_”, $id_lay);
$id_post = $split[0];
if(!in_array($id_post,$array_avoid)){
$select = “select `uid` from posts where uid = ‘$id_lay’ limit 1”;
$result = mysqli_query($con,$select);
$count = mysqli_num_rows($result);
if($count==0){
$all_type = [“LOVE”, “HAHA”, “LIKE”, “ANGRY”, “SAD”];//có 5 trạng thái
$type = $all_type[rand(0,4)]; //bạn có thể để random từ 0 -> 4 hoặc để số thay rand()
$links = “https://graph.facebook.com/$id_lay/reactions?type=$type&method=post&access_token=$token”;
$curls = curl_init();
curl_setopt_array($curls, array(
CURLOPT_URL => $links,
CURLOPT_RETURNTRANSFER => false,
CURLOPT_TIMEOUT => 0,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => false
));
curl_exec($curls);
curl_close($curls);
$insert = “insert into posts values(‘$id_lay’)”;
mysqli_query($con,$insert);
}
}
}
}
?>
|
File posts.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
— phpMyAdmin SQL Dump
— version 4.6.5.2
— https://www.phpmyadmin.net/
—
— Host: 127.0.0.1
— Generation Time: Dec 28, 2017 at 11:06 AM
— Server version: 10.1.21–MariaDB
— PHP Version: 7.1.1
SET SQL_MODE = “NO_AUTO_VALUE_ON_ZERO”;
SET time_zone = “+00:00”;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
—
— Database: `auto`
—
— ————————————————————————————
—
— Table structure for table `posts`
—
CREATE TABLE `posts` (
`uid` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
—
— Indexes for dumped tables
—
—
— Indexes for table `posts`
—
ALTER TABLE `posts`
ADD PRIMARY KEY (`uid`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
Lưu ý: Nhớ quẳng cả 2 file vào thư mục “evergreen”
Như vậy việc auto like, reactions của bạn chỉ chạy trên máy tính nên không lo mất nick nữa nha. Khổ nhất là nhập Token mấy trang trên mạng xong còn bị nó đăng xxx lên tường xong khóa nick mất toi ấy chứ. Cứ tự sướng là ko lo gì hết. Nhớ theo dõi Evergreen để cập nhật những thủ thuật Facebook mới nhất nha!