How to invite groups of friends to a Facebook event

By , November 6, 2013 7:05 pm

Facebook goes some way towards making it easy for you to invite groups of friends to an event, but it still requires a mouse click for each person you want to invite. If you have a friend list containing more than a handful of people, this rapidly gets tedious. Don’t worry though! Here’s a way to select the whole list in one go.

Note: Facebook imposes a maximum of 500 invites per person!

  1. Open the event in Firefox or Google Chrome or Chromium.
  2. Click on the “Invite friends” button.
  3. Select the list of friends you want to invite. This can be any of the displayed lists, whether it’s one which you created by hand, or one which Facebook generated automatically for you (e.g. friends who live in your home town).
  4. Scroll all the way to the bottom of the list, to ensure that all friends on the list are visible on the page. (If the list is long
  5. Open the JavaScript console. In Chrome and Chromium, this is accessed via the drop-down menu icon near the top right of the browser window, by clicking “Tools” and then “JavaScript Console”. In Firefox, it’s via the Tools menu, and then “Web Developer” and “Web Console”.
  6. Copy and paste these two lines of JavaScript in the console which pops up, and press Enter.

    checkboxes = $x('//a[contains(@class,"_1pu4") and @aria-checked!="true"]');
    for (i in checkboxes) { checkboxes[i].click() }
  7. Now wait a minute or two! It can be REALLY slow to update, especially if you are inviting a lot of people.
  8. All the displayed friends will now be selected. You can now click the “Submit” button to send the invites!

2 Responses to “How to invite groups of friends to a Facebook event”

  1. jatin gupta says:

    this is not working please find another solution for this
    the facebook has updated itself

Leave a Reply


Panorama Theme by Themocracy