How to Send an Event to All Friends on Facebook

by Johnathan Micah

Facebook events are used to get the word out about upcoming activities. One way to increase an event's attendance is to announce it to all your Facebook friends and send them an invitation. Facebook does not have a feature that allows users to send an event invitation to all their friends. But there is a way to select all your friends and send them an event invitation with a special JavaScript code.

Step 1

Log in to Facebook and click the "What are you planning?" box from the main screen. Fill out the event details and click the "Create Event" button to create a new event. Or find an event that already exists on Facebook and click the "Yes" or "Maybe" buttons to designate your attendance. Click on the "Select Guests to Invite" button that appears on the left-hand side of the event page, underneath the event's picture.

Step 2

Scroll the list of friends all the way to the bottom. The list will get longer each time as it refreshes with new friends from your friends list. Keep scrolling the list of friends downward until you reach the end of the list and all your friends are displayed in the "Invite Friends" box.

Step 3

Copy the following line of code and paste it into the browser's Address Bar:

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

Step 4

Press the "Enter" key and wait for the browser to process the code. The page will refresh and all the friends displayed in the "Invite Friends" box should now be selected. Click the "Submit" button to send the invitations to all the selected friends.

About the Author

Johnathan Micah has been involved in filmmaking and writing for over 10 years. He is the co-owner of Pelicula Films, a production company that has produced many short films, music videos and other television spots. Micah has been a freelance writer for many publications both online and offline. He holds a Bachelor of Science in journalism.