Return to site

Auto post comments to website from facebook

broken image
broken image

For example, if you have a single photo post (complete with caption, first comment, location tag, etc.) set to Auto Publish at 3:00 PM on Saturday, that post will go live at 3:00 Saturday.

broken image

You can run this code by opening the JavaScript console in your browser (usually Control+Shift+K in Chrome) and pasting it in. Auto Publish means that the posts you’ve scheduled in Later will publish to Instagram without any more work on your side. 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. 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. Open developer mode in Chrome by pressing Ctrl+Shift+I. If you want to use JavaScript to automatically like all comments on a Facebook post, here are some requirements you must meet − Below are the steps: Go to the Facebook page using m. Finally, we would need to implement error handling in case any issues arise during the process.

broken image

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.

broken image