mercoledì 16 marzo 2011

Inviting all your friends to facebook events: update March 2011

Update 13/01: Update for chrome user published
Update 18/03: Here is a video explaining how to use the script!
Update 17/03: version 2 of the code


Facebook just changed (on march 15th 2011) the way to invite friends to event, so a new script is needed.
The code I came up with is:
Version 1:
javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i++){if (elms[i].type="checkbox" )elms[i].click()};

Version 2:
javascript:var elms=document.getElementsByName("checkableitems[]");for(var count=0;count<elms.length;count++){var t = setTimeout("elms["+count+"].click()",100)}


Since now the facebook system uses lazy loading, only the first 100 friends are selected.
You can prevent this by scrolling to the end of the friend list before applying the script!

As before, the script can take a long time (several minutes for thousands of friends) before actually selecting every friend, so just wait.

If your friends are not too many, you can also create different lists of 100 friends each, and apply the script on each list.

I tested version1 with Chrome, other tested firefox 4 and opera. let me know of problems or better solutions!
Some people reported browser crashes.
The script is probably intensive for a high number of user (i could not test more than 500 :D). In case, try version 2!

I posted 2 version: the first is the "normal" one. The second might be a bit slower, but should avoid browser chrashes (I hope!). I'm still working on a faster version, so check back ;)

How to use it:
Triple click on the script (version1 or version 2) to select it.
Copy (ctr+C) the above script.
Go to the event page and select "invite friends". When the menu opens, select your friend list (or just leave "all friends"). Scroll to the end of the panel, and then past into the url bar the script (ctr+v).
Wait a bit (maybe more than a bit!), and you should find all of your friend selected.
Submit the invite and you're done!
Let me know if this doesn't work. For a guide with screenshots check http://www.v3im.com/2011/03/inviting-all-friends-to-facebook-events/.

Special instruction for use on Chrome:
http://giacobam.blogspot.com/2012/01/invite-all-friends-update-for-chrome.html

A video is also available here.

(see http://giacobam.blogspot.com/2010/09/trucco-per-invitare-tutti-agli-eventi.html for instruction in ITALIAN)

90 Comments:

Donna Kiernan ha detto...

I don't know who you are but you are awesome.

Craig ha detto...

Thanks for this....

Michele G. ha detto...

thanks :)

Let me know if you find any problem!

Unknown ha detto...

THANKS GOD!!!!

Anonimo ha detto...

I LOVE YOU! IT WORKED!!! <3

Anonimo ha detto...

Legend!

i found that if you simply scroll to the bottom of your friends list before using the code it will select the entire list, not just 200.

thanks again mate :)

Unknown ha detto...

Whit chrome sometimes isnt working or get crashed chrome, but with OPERA it works perfectly :) thx again, dude!

Michele G. ha detto...

thanks! I updated the post!

claksaarb ha detto...

And how would I apply this script? Sorry, I'm a rookie.

Mark DeLuca ha detto...

Great! Thank you very much!

Anonimo ha detto...

THANK YOU THANK YOU THANK YOU.

Michele G. ha detto...

claksaarb
I added the description on how to use the script on the post! Let me know if you need further details!

Anonimo ha detto...

works also with opera.
thanks :-)

Unknown ha detto...

you just saved my life,....THANK YOU

Kristina ha detto...

Thank you so much for this! You are currently the ONLY person on the web that has posted a solution to Facebook's recent change to the invitation process. (So annoying)

Anyhow, I've got 5,000 friends and first tried this code in Safari. It crashed the browser and didn't work.

Opened up Firefox 3.6.15, scrolled to the very bottom of the 5,000 person list, copied and pasted the code and voila! "Success! Your invitations have been sent."

Note: It took about 5 - 7 min for it to select all. I had almost given up and was going to try the code on one of my smaller groups instead of "all" but just as I was going to cancel, all the boxes became checked and I was in business. Amazing!

Thanks again.

Michele G. ha detto...

thank you Kristina for this comment!
I have a couple of ideas for improvement (including auto scroll), let's see what I can do!

Unknown ha detto...

it works!

LS ha detto...

Genius!

Anonimo ha detto...

thank you so much!!!!

Anonimo ha detto...

Thank you!!!

Michaela ha detto...

Thanks!!!
The code 2 works fine -
I followed your instructions - scrolled down first, enter the code, WAIT and here it it!!

You saved me from straining my hand, I hate that they expect people to click each name, it's crazy, but that's to you, all sorted!

Unknown ha detto...

Keep it up good workk...

Marga ha detto...

Thanks from the Netherlands... Love it!!!

Unknown ha detto...

Not working for me yet????

Michele G. ha detto...

not working sean?
did you check the video?

http://giacobam.blogspot.com/2011/03/how-to-use-facebook-script-video.html

Unknown ha detto...

Ti ringrazio - sei grande!

Unknown ha detto...

Thaks!!!

Phil ha detto...

You are a shiny shiny person whoever you are!

Many thanks for this script!

^_^

// Phil

Anonimo ha detto...

the 2nd code select 1 by 1... working here! thank you so much! all the best from brazil!

Jeanine Guidry ha detto...

THANK YOU from the bottom of my heart.

Unknown ha detto...

Greetings from Brooklyn, NY.
Thank you for this posting.
It works!
Regards,
Nipsyco

Unknown ha detto...

What can i do if i have around 4800 friends on facebook? hehehe...

jesse hall ha detto...

It works... Thanks so much.. now if we can get FB to stop changing their site all the time

Michele G. ha detto...

thank you all!

George you can try splitting them in friend list and invite a list at a time..

Unknown ha detto...

Code works on event invites but doesn't seem to work on page suggestion invites. I tried them both in chrome and firefox and no luck on the page invites. Great work for event invites tho.. hopefully a page invite script is in the works? =]

Luciana ha detto...

Thank you man!

Michele G. ha detto...

yes, the group/page invite page is different, a different script is needed! I'll work on it!

Unknown ha detto...

thank you... it works great

Tina B ha detto...

On both Google Chrome and Firefox neither code is working for me... tried ctrl+x tried paste & go tried every method I know of pasting and going that I could think of any neither v1 or v2 are doing anything for me... any ideas???

Anonimo ha detto...

I used version 2 in Opera for 650 friends, and it took 4 seconds to select all my friends. Thanks alot!!

Unknown ha detto...

Thank you so much for version 2 :)

Anonimo ha detto...

I know no words to tell you how much I love you! Thank you so much!!!!!

Anonimo ha detto...

THANKS A LOT, IT WORKS PERFECTLY !!! IS THERE ANY WAY FACEBOOK CAN FIND OUT WE ARE USING THIS? A FEW OF MY FRIENDS GOT THEIR ACCOUNTS DELETED AND I'M WONDERING IF THIS WAS THE REASON...

vicky rathore ha detto...

can u plz me javascript code to suggest friends from page not from event.

Unknown ha detto...

can I have this too please...javascript code to suggest friends from page... thanks

Unknown ha detto...

Thank you for this! Ace!
Still hoping someone comes up w/ a hack to Suggest 'All" Friends to a Fan Page...Anyone?

Elizabeth Lee ha detto...

This saves me so much time. You're awesome. And I love how happy/excited you get about it. Have a great day!

Anonimo ha detto...

Thank you very much for this updated script. It is very appreciated!!

-J Toronto

the13thing ha detto...

Tested using firefox, great work, thank you for sharing with us!

Unknown ha detto...

It is not working for me!! Help!!

Anonimo ha detto...

Wahou! Thank you so much :)

Dr. Clitterhouse ha detto...

I love, love, love you!

Unknown ha detto...

absolutely brilliant! thanks alot

Donna Kiernan ha detto...

Does it also work for inviting people to answer a question? Cause if it dies it seems to be taking forever or am I just waiting for nothing like a fool?

Rox425 ha detto...

Thanks so much! >:D<

Anonimo ha detto...

Thank you so much! :)

Frank Michlick ha detto...

Thank you!

Unknown ha detto...

it seems that it keeps telling me that i have to 'narrow' down my selection to people that are most likely to be interested in the event and not allowing me to do even 100 at a time. Ideas?

http://www.countrygirlgardens.net ha detto...

I am interested very much in the subject matter of your blog.I like very much your way of presentation.. I got more useful information on this blog.. Thanks for sharing the useful information….Keep it up.

Adinda ha detto...

hey, can u give the scrpit for fans page? i need that. thanks :)

Locksmiths ha detto...

Very good post. Thank you so much for sharing this information. I have bookmarked this page for future use.

Locksmith ha detto...

Thank you so much for this! You are currently the ONLY person on the web that has posted a solution to Facebook's recent change to the invitation process.

Candia Garibay ha detto...

Thank you so much <3

Candia Garibay ha detto...

Muchísimas gracias
Mile cioccolata gratzie
Thank you so much

Anonimo ha detto...

Both codes is not working!
Some fix?

Anonimo ha detto...

doesn't work. I have used Chrome, Firefox, and Camino

affiliate ha detto...

Glad to read this post. Very informative and interesting one. Looking forward to read more. Thanks.

Anonimo ha detto...

please update code. not working and everyone would appreciate it greatly!

*Tanyetta* ha detto...

THANK YOU! IT WORKED PERFECTLY! :)

Amanda ha detto...

hey, how long does it usually take to select a group of friends lets say over the 2,000 number??? it seems like it takes forever!!! Hope it works!!!

enlightenment ha detto...

The javascript worked for many months but now it has stopped working. Can you easily fix it?

Many Thanks!

malisha ha detto...

yes it was working perfectly, until yesterday, i think facebook changed js code and most probably variable names

Anonimo ha detto...

Well, it's another sad day in FacebookLand... this code no longer works :( It was great while it lasted!

Have you noticed this yet? And if so, any chance you've figured out a new workaround?

So ridiculous they allow us to make events and then no way to invite people. Unreal.

If anyone has any info, please share it!

-Kristina

Michele G. ha detto...

I've noticed the script problem, facebook changed the page markup and introduced an Iframe. I'll take a look, but this doesn't seem easy to fix.

oli_rrpp ha detto...

Please if someone find another methode, please post it here, we will aprecciate it very much, thanks anyway :)))

Anonimo ha detto...

Thank you!

NEW POST above me..
07 giugno 2011 10:20

Worked!

jrad ha detto...

version 2 worked for me still too

Anonimo ha detto...

SIR, YOU ARE A GOD. VERY VERY NICE.

Anonimo ha detto...

please I think it doesn't work again, could you help me? Matbe something changed durign this time. We are Italian so you can also write in Italian if you prefer.

Unknown ha detto...
Questo commento è stato eliminato da un amministratore del blog.
Unknown ha detto...
Questo commento è stato eliminato da un amministratore del blog.
atl2arctic ha detto...

Hey! First of all, thank you! This was a great solution while it lasted! As of today, Facebook has broken how to Invite people. The script no longer works. I hope another update of this script will be available soon!

Urology Surgery in India ha detto...


Great to hear your positive experience!

Health Yatra ha detto...

Thanx for sharing that. It was fun reading it. :-)

penile prosthesis ha detto...

That was a VERY interesting one! Seriously interesting.

Stem Cell Therapy For Optic Nerve in India ha detto...

Thanks for great article sharing...

Stem Cell Therapy for Dermatomyositis in India ha detto...

Greetings and thank you very much for share

Stem Cell Therapy for Diffuse Axonal Injury in India ha detto...

Thank you, that was just an awesome post!!!

Stem Cell Therapy for Encephalopathy in India ha detto...

Thank you, that was just an nice post!!!

Stem Cell Therapy for Inclusion Body Myositis in India ha detto...

Thank you so much share nice article


site by  wellD, web-communication, Lugano