8/2/2023 0 Comments Auto post to facebook comments![]() ![]() ![]() You can run this code by opening the JavaScript console in your browser (usually Control+Shift+K in Chrome) and pasting it in. For each comment, call the like API endpointįor (var i=0 i < i++) with the actual ID of the post, and Your-Access-Token with a valid Access Token. Here is the approach in pseudo code for the same − // 1. The social media scheduling app allows you to share your blogs, posts, and custom content without creating a WordPress post. When, how, and why you should use auto-comments on Facebook, How to set up smart auto replies that address relevant issues, How to automatically hide or delete spammy comments on Facebook. You would need to use the Facebook Graph API to first get all comments on a post.įor each comment, you would need to call the “ like” API endpoint. If you want to use JavaScript to automatically like all comments on a Facebook post, here are some requirements you must meet − Finally, we would need to implement error handling in case any issues arise during the process. Then, we would use a loop to iterate through each comment and use the API to like each one. We would first need to access the post's comment section through the Facebook API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |