Mass Commenting on Facebook Posts

Now a days, automation is a very common task, and, we like it very much too. Specially, automating the different tasks on social media using their API.

I’ve written so many  scripts in JavaScript and Python to automate tasks, and I love doing it.  So, today, I’m gonna share a cool Python Code so that you can comment even 1000 + times on any Facebook Post within a minute or second.  🙂


STEP 1 :  Visit 

STEP 2 : Goto

 Tools and Support 

and click on

 Graph API Explorer 

STEP 3 : Now, you have a Dashboard. So, click on

 Get Token 

and select all the options given there and then click on

 Get Access Token 

Screenshot from 2015-10-16 02:28:11

STEP 4 : Copy the whole text, which looks something like


and paste it in your text favorite text editor.

STEP 5 : Now open the facebook status in which you want to comment and visit it’s link, which is something like

and copy the numbers after ?fbid. In this post, the comment id is :


STEP 6 : Download the Code from here :

Facebook Mass Commenter

STEP 7 : Open the file and fill the informations.

STEP 8 : Open Terminal using

 Ctrl + Alt + T 

and type


and hit enter.

STEP 9 : Congrats! Check the facebook post 😀

You can have a look on the code, I’ve given the link to download, just in case if you don’t want to copy paste it.

import httplib, urllib 
from bs4 import BeautifulSoup 
import os 
import json
import time

access_token='ACCESS TOKEN PLEASE!'
conn = httplib.HTTPSConnection("") 
print 'Please Wait!'
def comment(url): 
    connect = httplib.HTTPSConnection("") 
    for x in xrange(1000):         
            print 'commenting %d '% x
            path ='/'+'PUT FB STATUS ID HERE'+'/comments'
            param_data={  'format':'json', 
                        'message':'Auto Generated Comment', 
            connect = httplib.HTTPSConnection("") 
print 'DONE!'

Thanks 🙂 I’ll keep posting interesting stuffs on my blog.


2 thoughts on “Mass Commenting on Facebook Posts

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s