• Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
AnonyViet - English Version
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office
No Result
View All Result
AnonyViet - English Version
No Result
View All Result

Code to find a person’s Comments on any Page

AnonyViet by AnonyViet
February 4, 2023
in Tips
0

If you have a lover or crush and you want to follow that person. This is a way for you to find comments that your friends have commented on certain Pages. You can actively search by each Page separately.

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.

Code to find a person’s Comments on any Page

How to use Code to find comments of friends

Edit Code parameters accordingly:

  • idPage: id of the page you want to find (How to find Page ID)
  • idUser: id of commenters (find User ID similar to Page ID)
  • accesstoken: is your token (How to Get Token Full rights)

You open Chrome, press F12 select tab Console and paste 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;i<data.length;i++){
                                            var id = data[i].id;
                                            var uri2 = "https://graph.facebook.com/v3.3/"+id+"/comments?fields=from,message&limit=100&access_token="+token;
                                            var ttp = new XMLHttpRequest();
                                            getID(uri2,ttp);
                                        }
                                        
                                    }
                                }
                            }
                            xmlHttp.send();
                            
                        }else{
                            console.log("End");
                            clearInterval(time);
                        }
                    },2000);
                }
            f2();
            function getID(uri2, ttp){
                                    if(uri2 != ""){
                                        ttp.open("GET",uri2,true);
                                        ttp.onreadystatechange= function(){
                                            if(this.status == 200 && this.readyState == 4){
                                                var jsonComments = JSON.parse(this.responseText);
                                                if(jsonComments.data.length >0){
                                                if(jsonComments.paging.next == "" || jsonComments.paging.next == null){
                                                    uri2 = "";
                                                }else{
                                                    uri2 = jsonComments.paging.next;
                                                    var data = jsonComments.data;
                                                    for(var i=0;i<data.length;i++){
                                                        var from = data[i].from;
                                                        if(from.id == idUser){
                                                            console.log(data[i]);
                                                        }
                                                    }
                                                    getID(uri2,ttp);
                                                }
                                            }
                                            }
                                        }
                                        ttp.send();
                                    }else{
                                        console.log("End post");
                                        return;
                                    }
            };

The article achieved: 5/5 – (100 votes)

Tags: CodeCommentsFindpagepersons
Previous Post

Update Unikey 4.3 RC4 to fix Vietnamese typing error in browser address bar

Next Post

Olala Pascal – Easy to use interface Pascal compiler

AnonyViet

AnonyViet

Related Posts

How to write Shell Script in Linux/Unix
Tips

How to write Shell Script in Linux/Unix

December 6, 2025
How to completely uninstall WSL on Windows 11?
Tips

How to completely uninstall WSL on Windows 11?

December 6, 2025
Kinh nghiệm mua Laptop cho sinh viên nhóm ngành kế toán, kinh tế, xã hội…
Tips

Kinh nghiệm mua Laptop cho sinh viên nhóm ngành kế toán, kinh tế, xã hội…

December 5, 2025
8 tips for more successful PowerPoint presentations
Tips

8 tips for more successful PowerPoint presentations

December 4, 2025
Chrome extensions to improve productivity in 2021
Tips

Chrome extensions to improve productivity in 2021

December 2, 2025
How to create photos that run KPIs while crying using Gemini for the 12 zodiac animals
Tips

How to create photos that run KPIs while crying using Gemini for the 12 zodiac animals

December 1, 2025
Next Post
Olala Pascal – Easy to use interface Pascal compiler

Olala Pascal - Easy to use interface Pascal compiler

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent News

How to create Mind Map and Flowchart using ChatGPT is super simple

How to create Mind Map and Flowchart using ChatGPT is super simple

December 7, 2025
Free Gemini Google certification exam guide and Answers

Free Gemini Google certification exam guide and Answers

December 6, 2025
How to write Shell Script in Linux/Unix

How to write Shell Script in Linux/Unix

December 6, 2025
How to completely uninstall WSL on Windows 11?

How to completely uninstall WSL on Windows 11?

December 6, 2025
How to create Mind Map and Flowchart using ChatGPT is super simple

How to create Mind Map and Flowchart using ChatGPT is super simple

December 7, 2025
Free Gemini Google certification exam guide and Answers

Free Gemini Google certification exam guide and Answers

December 6, 2025
How to write Shell Script in Linux/Unix

How to write Shell Script in Linux/Unix

December 6, 2025
AnonyViet - English Version

AnonyViet

AnonyViet is a website share knowledge that you have never learned in school!

We are ready to welcome your comments, as well as your articles sent to AnonyViet.

Follow Us

Contact:

Email: anonyviet.com[@]gmail.com

Main Website: https://anonyviet.com

Recent News

How to create Mind Map and Flowchart using ChatGPT is super simple

How to create Mind Map and Flowchart using ChatGPT is super simple

December 7, 2025
Free Gemini Google certification exam guide and Answers

Free Gemini Google certification exam guide and Answers

December 6, 2025
  • Home
  • Home 2
  • Home 3
  • Home 4
  • Home 5
  • Home 6
  • Next Dest Page
  • Sample Page

trang chủ f168 nhà cái 78win https://www.qq8827.com/

No Result
View All Result
  • Home
  • News
  • Software
  • Knowledge
  • MMO
  • Tips
  • Security
  • Network
  • Office

trang chủ f168 nhà cái 78win https://www.qq8827.com/

wpDiscuz
0
0
Would love your thoughts, please comment.x
()
x
| Reply