In this article, we are going to learn how to like multiple posts automatically on the Facebook news feed. Many a time we waste too much time in liking all the posts in our news feed. So this script will help to reduce our time and effort by automating this task.
- Make a variable posts that points to an array of all the posts on current page.
- Run a loop to iterate all the posts.
- Now we check if the post is not already liked.
- Then click on the like button of that post.
Below are the steps:
- Go to facebook page using m.facebook.com
- Sign in and open the news feed/homepage.
- Open developer mode in Chrome by pressing Ctrl+Shift+I
- Navigate to the console.
- Now, run the below script.
posts = document.getElementsByClassName(
Note: Please ensure that there is a stable internet connection available so that the script runs smoothly. Also ensure to visit facebook with m.facebook.com not www.facebook.com because this script works on mobile version of facebook only.
This tutorial is for educational purpose only, please don’t use it for disturbing anyone or any unethical way.
- How to Design Homepage like Facebook using HTML and CSS ?
- How to Display Recent Posts in DOM using PHP and MySQL ?
- Google AMP amp-facebook-like
- How to create the best Google My Business Posts ?
- Semantic-UI | Feed
- How to scroll automatically to the Bottom of the Page using jQuery?
- How to call a function automatically after waiting for some time using jQuery?
- How to scroll automatically to a particular element using JQuery?
- How to Automatically Close Alerts using Twitter Bootstrap ?
- How to get focused a button automatically when the page load using HTML ?
- Network News Transfer Protocol (NNTP)
- How to use Bootstrap modal for YouTube videos and play automatically ?
- How to automatically close all collapsible elements inside of the accordion when closing the accordion?
- How to automatically start a download in PHP ?
- How to achieve <fieldset> like effect without using <fieldset> tag ?
- Facebook WOW emoji using HTML and CSS
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.