barista 0 Posted September 19, 2012 Report Share Posted September 19, 2012 I want to creat a bot that clicks the Facebook Like, Tweet and Google +1 buttons on a webpage. The Facebook part would be like this: List of Facebook account loginsGets first loginUbot logs in to FacebookNavigates to blog postClicks the Facebook Like buttonLogs out of FacebookClears browser cache Checks if last Facebook account- if no, selects next Facebook login- if yes, finishes Facebook Liking The Twitter and G+1 would be more or less the same. Before I start creating this I wanted to ask you experienced developers here if there are any hidden traps to consider. In the past I have spent hours tweaking bots. This requirement seems relatively straightforward. However Facebook in particular can get a bit fussy. Any thoughts? Thanks! Quote Link to post Share on other sites
a2mateit 395 Posted September 19, 2012 Report Share Posted September 19, 2012 This can most definitely be done. The one problem you will more than likely run into is having to phone verify the accounts if google or facebook suspects anything fishy... 1 Quote Link to post Share on other sites
barista 0 Posted September 19, 2012 Author Report Share Posted September 19, 2012 This can most definitely be done. The one problem you will more than likely run into is having to phone verify the accounts if google or facebook suspects anything fishy... Thanks for the comment! We will be using accounts already created by 'volunteers' and hopefully we will be able to resolve problems if they arise. The alternative to a bot is to to pay someone on Fiverr. However we're generating 1 or 2 articles per day per client, so it could get expensive, which is why I considered a bot. Thanks for the encouragement. Quote Link to post Share on other sites
a2mateit 395 Posted September 19, 2012 Report Share Posted September 19, 2012 If you have alot of accounts it shouldn't be a problem. Here is a little example for facebook to get you going in the right direction. I haven't used it in quite a while so it might need a little tweaking: ui text box("email", #email) ui text box("Password", #password) ui text box("Website", #website) ui text box("Likes", #likes) ui check box("Use Proxies", #use proxies) ui block text("Proxies", #proxies) add item to list(%proxies, #proxies, "Delete", "Global") set user agent("Internet Explorer 8") change proxy($random list item(%proxies)) navigate("http://www.facebook.com", "Wait") wait for browser event("Everything Loaded", "") type text($element offset(<email field>, 0), #email, "Standard") wait(2) type text($element offset(<password field>, 0), #password, "Standard") wait(2) click(<value="Log In">, "Left Click", "No") wait for browser event("Everything Loaded", "") wait(5) click(<innertext="News Feed">, "Left Click", "No") wait(3) loop(1) { click(<name="xhpc_message">, "Left Click", "No") type text(<name="xhpc_message_text">, #website, "Standard") wait for element(<id="label_no_picture">, "", "Appear") click(<value="Post">, "Left Click", "No") wait(3) mouse over(<id=w"stream_story_*">, "Yes") click($element offset(<class="mrs defaultIcon customimg img sp_ah6icc sx_faeefc">, 1), "Left Click", "No") wait(3) } Like I said, it will probably need a little tweaking, but should get you going in the right direction for the facebook part. Let us know if you get stuck on anything. Justin 1 Quote Link to post Share on other sites
blumi40 222 Posted September 19, 2012 Report Share Posted September 19, 2012 facebook is a realy tricky area to play with a boti tried it many times and on one hand it is fantastic what the fb-devteam does to defense the siteon the other hand many frustrated hours of work and not running bots.for sure small fb bots for post in groups aso is no problem but to use fb as advPlatformwith many proxys many accounts and spuntext is realy realy tricky Quote Link to post Share on other sites
Legend 181 Posted September 20, 2012 Report Share Posted September 20, 2012 facebook is a realy tricky area to play with a boti tried it many times and on one hand it is fantastic what the fb-devteam does to defense the siteon the other hand many frustrated hours of work and not running bots.for sure small fb bots for post in groups aso is no problem but to use fb as advPlatformwith many proxys many accounts and spuntext is realy realy tricky true dat! building bots for my own use, that can be updated every time FB makes a change is one thing... trying to make something for others that will last more than a week or so would be a nightmare... Quote Link to post Share on other sites
barista 0 Posted September 20, 2012 Author Report Share Posted September 20, 2012 Thanks guys, really helpful. It seems like Twitter is the most straightforward. Facebook would be tricky. G+ ... not sure! Even hootsuite sometimes has trouble with legit G+ posting. Quote Link to post Share on other sites
a2mateit 395 Posted September 20, 2012 Report Share Posted September 20, 2012 facebook is a realy tricky area to play with a boti tried it many times and on one hand it is fantastic what the fb-devteam does to defense the siteon the other hand many frustrated hours of work and not running bots.for sure small fb bots for post in groups aso is no problem but to use fb as advPlatformwith many proxys many accounts and spuntext is realy realy tricky FB is definitely a beast of it's own. That's why I haven't used this code in a while. You will definitely have to re-configure and change things as often as they do... But like Duane said it's not ideal to sell anything commercially, but if it's for your own clients and you stay on top of the changes then you will find a way. The internet is a constantly changing place, and if you don't stay two steps ahead then you get left behind. 1 Quote Link to post Share on other sites
suntattood 0 Posted September 21, 2012 Report Share Posted September 21, 2012 FB has doing a lot of changes, so on our end, we should also keep our bots updated to it. Right? http://imagicon.info/cat/5-34/scared.gif Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.