Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Facebook Autopoke 2.1

Automatically pokes back pokers listed on your home page. This script is based on Lukas Fragodt's Auto-Poke and EZ-Poke. Modified on 10/19/2006, this new version takes into account a new authentication that facebook installed. A brief changelog is available on the script's userscripts.com website. This script is licensed under the GNU Public License Version 2.0 and is distributed without warranty.

Changelog
* 2.1 (10/19/2006)

  • Modified regular expression for post_form_id to better capture the confirmation code.
* 2.0 (8/17/2006)
  • Seperated the code to two sections: one for getting the confirmation poke page and one for doing the actual poking.
  • Fixed poking for facebook's new code:
    • Retreives post_form_id from the confirmation page and then passes it along to the POST function in the script.
  • Provided more descriptive errors with error codes. Anytime the script fails, autopoke will provide a failure code in brackets. The full-text of the failure is noted in the JavaScript console. Provide this information when submitting bug reports.




Jun 19, 2008
Bouphecr Scriptwright

Auto-Poke failed! [1.1]

 
Jun 10, 2008
kenjeeb User

can you make it work for other languages like japanese?
whenever i put it into japanese mode it says "autopoke failed"

 
Mar 7, 2008
Sonar User

still working :)

 
Feb 25, 2008
bobielawlintine Scriptwright

Works like a champ!!

 
Sep 11, 2007
Corbin Lair User

never mind i figured it out i'm just retarded

 
Sep 11, 2007
Corbin Lair User

hey, i'm new to this but when i click the install it brings me to the code. wat do i do from there?

 
Aug 10, 2007
Mike Soh Script's author

As of this posting, this script still works. If you are still having problems, please post here.

 
Jul 19, 2007
xanderificus User

"It might be good to explain that greasemonkey is needed and what it is."

ROFL - the entire site is NOTHING but GreaseMonkey scripts. Do you go to MP3 download sites and tell them they'll need a player for it? Moron.

 
Jun 6, 2007
bunnee User

It worked for about 2 pokes, then stopped working so I uninstalled and now it won't let me reinstall!!

get an error that says something about file already exists, any suggestions??

 
Jun 2, 2007
Devlin User

Forget it, coming straight in from a search engine I was confused what this scripts were as there's no description anywhere that I found on the site. It might be good to explain that greasemonkey is needed and what it is.

 
Jun 2, 2007
Devlin User

Hi, there, I'm new to this and was wondering if there were instructions on this script. I'm assuming I install this on my server. Any help I can get on my war against my cousin would be appreciated.

Thanks,

Devlin

 
Jan 15, 2007
Gibbs User

when i try and install i get an error msg :( i was just about to to launch a poking blitzkrieg...

 
Jan 10, 2007
Alan Hogan Scriptwright

In response to the comments from August 2006: Two options... (1) Greasemonkey *may* provide special functions to get around this. *May*. (2) You could write a cookie, I believe, for "facebook.com", couldn't you, with JS.

 
Jan 10, 2007
Alan Hogan Scriptwright

Might want to update the description to show that it works, even with facebook's new poke handling (that is, a popup thing instead of a new page)

 
Dec 13, 2006
Charles Moye User

I am new to this, but with grease monkey, would something like this work for keeping up with the number of pokes?
-- inside the 'you have poked' else if statement in function DoThePoke --
pokeNode.removeAttribute('href');
var sum = 1;
if (!GM_getValue('counter' + pokee)) {
GM_setValue('counter' + pokee, sum);
}
sum = GM_getValue('counter' + pokee);
pokeNode.innerHTML = 'Auto-Poked ' + sum + ' times!';
sum = sum + 1;
GM_setValue('counter' + pokee, sum);

 
Oct 19, 2006
Mike Soh Script's author

Lukas...lol we thought of the same solution. :-)

Hope you don't mind contributing to your script.

 
Oct 19, 2006
Mike Soh Script's author

Thanks Andrew and Lukas for your bug report!!

I noticed that the script didn't work for me either. I'm not sure why facebook keeps changing it's code. Regardless, I changed the regular expression in which the post_form_id is captured (\w+) instead of a (\.*).

That should hopefully fix things. Feel free to poke me and give it a try. :-)

 
Oct 19, 2006
Andrew Guyton User

Glad I could help.

 
Oct 17, 2006
Lukas Fragodt Scriptwright

Scratch that... looked like an easy fix, (but haven't had a chance to test the fix). New version available here: http://userscripts.org/scripts/show/5999

 
Oct 17, 2006
Lukas Fragodt Scriptwright

Andrew, I'll take a look at this tonight provided Mike hasn't posted a comment or a new version by then.

 
Oct 17, 2006
Andrew Guyton User

This script stopped working! :(

It gives you:
Poke failed! [2,1]

And the javascript console says:
http://userscripts.org/scripts/show/5200/Facebook Autopoke 2.0: Auto-Poke failed -- Error Code 2.1: The confirmation page was retreived and the post_form_id was found (909e87aa89ba581840f78e1c86fd6ba1" /><input /><input /><input />divdiv

 
Aug 22, 2006
Mike Soh Script's author

I've actually considered this; however, because of javascript limitations, this cannot be done. However, this could be done via a firefox extention. I don't know how to program in firefox (nor do I desire to).

Perhaps a feature request in the Facebook Stalker extention is the way to go.

http://www.fbstalker.com/facebook.html

 
Aug 20, 2006
Richard Carnan User

This script is too fine to be denied! What would make this even better would be that it logs each poke back so when used with the facebook live homepage, you can see who you are in a poke war with and how many pokes you have done.

You could comment on this script if you were logged in.