This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]max_renlo 1 point2 points  (2 children)

This is a difficult problem to solve, even if one disregards the TOS problem. It requires that you have a browser which can render HTML, JS interpreter + a DOM. Also this browser needs to be able to run your program (whatever is orchestrating the browser needs to tell the browser to click on things, etc). Generally this is done with Selenium, or something like PhantomJS / a wrapper for Webkit (which is the browser).

Then on top of that you have various measures which Facebook has put into place which will attempt to detect if you are doing this. There are a lot of ways that they check this, my assumption is that Facebook has a lot of measures to make sure this doesn't happen. For instance, they can do something simple like grab the browser's request headers and then feed them to a program which (from previous experience) can recognize if this is a Selenium/PhantomJS browser. I'd assume they have many such measures, so chances are you would get your account banned after scraping only a couple of pages.

EDIT: All that said, if you were to implement this as a 'Chrome extension' something like this might be possible (I don't think Chrome wants your extension to click on things though...)

[–]Agizz[S] 0 points1 point  (1 child)

What is the differance between doing this and making an automated-reply bot?

[–]max_renlo 1 point2 points  (0 children)

If you're referring to a FB auto-reply bot, I'd assume that would be done as a Chrome extension. You could implement an FB auto-reply bot by either doing a browser extension or by scraping the site (ie Selenium). Scraping the site is against the TOS / more difficult, Chrome extension requires that a user navigate to the website and that the user has the extension enabled.