Code
PHP:
<?php
$access_token = $_POST['access_token']; // access token tài khoản tương tác
$id_post = $_POST['id_post']; // id bài đăng
$type = $_POST['type']; // like = 1, love = 2, wow = 3, haha = 4, sad = 7, angry = 8
$action = json_decode(file_get_contents('https://api.autofb.site/reaction?token='.$access_token.'&id_post='.$id_post.'&type='.$type.''),true);
if($action['messages '] == 'true'){
echo 'true';
}else{
echo 'false';
}
?>
Sửa lần cuối: