If you have a lover or crush and you want to follow that person. This is a way for you to find a comment that your friends have commented on a certain page. You can proactively find each separate page.
Join the channel Telegram belong to Anonyviet 👉 Link 👈 |
If you want to find any person’s comment on any page, you can use the code below. Code by you Nguyen Son Duong share. With this code, you will find your friends’ comments on any page.
Edit the code parameters accordingly:
- IDPage: The page of the page you want to find (how to find ID page)
- Iduser: ID of the comments (find the user ID similar to the ID page)
- Accesstoken: Is your token (how to get it Full token right)
You open Chrome, click F12 Choose tab Console And the code below. Remember to edit the parameters for: Accesstoken, IDPage, Iduser
var idPost = new Array(); var token = "" var idUser = ""; var idPage = ""; function f2(){ var xmlHttp = new XMLHttpRequest(); var uri = "https://graph.facebook.com/v3.3/"+idPage+"/posts?limit=100&access_token="+token; var time = setInterval(function(){ if(uri != ""){ xmlHttp.open("GET",uri,true); xmlHttp.onreadystatechange= function(){ if(this.status == 200 && this.readyState == 4){ var jsonPost = JSON.parse(this.responseText); if(jsonPost.paging.next == "" ||jsonPost.paging.next == null){ uri = ""; }else{ uri = jsonPost.paging.next; var data = jsonPost.data; for(var i=0;i0){ if(jsonComments.paging.next == "" || jsonComments.paging.next == null){ uri2 = ""; }else{ uri2 = jsonComments.paging.next; var data = jsonComments.data; for(var i=0;i Câu hỏi thường gặp
Làm thế nào để tìm ID của Page và User?
Bạn có thể tìm ID của Page bằng cách sử dụng công cụ tìm ID Page trực tuyến (tham khảo link trong bài viết) và tìm ID User tương tự.
AccessToken là gì và làm thế nào để lấy được nó?
AccessToken là một mã token cho phép truy cập dữ liệu Facebook. Bạn có thể tìm hiểu cách lấy AccessToken full quyền theo hướng dẫn có trong bài viết.
Nếu code không hoạt động, tôi nên làm gì?
Hãy kiểm tra lại xem bạn đã điền đúng ID Page, ID User và AccessToken. Đảm bảo rằng bạn đã mở Console trong trình duyệt (bấm F12) và dán code vào đúng vị trí.