Scripts

Invite All Your Facebook Friends to Like a Page or Event on Facebook [2019]

facebook invite all friends
Comments (90)
  1. jellybean22 says:

    niceee one

    1. Alisha Valdry says:

      The invite to event page code didn’t work for me. Using Chrome.

    2. vincent says:

      didnt work with me too

    3. seko says:

      i don’t understand how to make my friends like my post on my page

  2. Kelly Jensen says:

    Is this script safe to use?

    1. alerioja says:

      Yes! There’s nothing unsafe about it, this just saves you the work of manually clicking on each invite box. I have used the same exact script with my own Facebook pages: https://www.facebook.com/fluxchargers and https://www.facebook.com/fluxdev.

    2. AB says:

      I tried this and now facebook won’t let me invite anyone and it keeps saying that I’ve been using this feature too fast and now I’m blocked from this.

  3. Paul Shuen says:

    This is amazing, thank you!

  4. jody says:

    dope ass script, thanks m8

  5. mirko hejtvk says:

    perfect, works.

  6. Austin Vaday says:

    Awesome, man! It worked! Keep up the great work.

  7. Sumit Kumar says:

    Nice and interesting. I got unique information from your this post. Thanks for sharing Alerioja.

  8. Bogdan Manci says:

    How can you make it wait 2 seconds ?

  9. Ainaa says:

    what does that mean?

    Type “javascript:” into the address bar. (Notice the semicolon after javascript, no quotes).

    dunno where to palce this 1.

    1. The address bar is where the site’s url is i.e. https://alejandrorioja.com/blog/invite-friends-like-page-facebook-script
      if you press CMD+L you will get to the address bar 🙂

    2. vincent says:

      still working in 2018?

  10. nice post i like it.. it works.

  11. Jonathan says:

    May the Lord bless you for providing this dope af script! Just saved me a ton of time on my new Facebook page.

  12. Alex says:

    There is an extension that automatically opens all posts on the page and invites everyone, fully automated: https://www.youtube.com/watch?v=acflCvT5oi0

    1. I tried it and it didn’t work

  13. Eugi says:

    I found this extension that automatically scans all posts and invites everyone who liked any post to like also the page: https://www.youtube.com/watch?v=acflCvT5oi0

  14. Great Article ! we are expecting more articles like this . Keep going.

  15. moon says:

    give me member adding full sricp code

  16. Tertius says:

    I get this message after I hit enter: “We’re sorry, more invitations to like this Page can’t be sent today. Please try again later.
    If you think you’re seeing this by mistake, please let us know.”

    1. yeah the new FB update will only let you send invitations to 500 of your friends in a day. So far, I haven’t found a workaround this.

  17. ricky peterson says:

    hi i couldnt get it to work

    1. let me know which step you got stuck on and I can help

    2. did you remember to type “javascript:” at the front?

  18. Camille says:

    Worked great! Thank you for sharing

    1. sweet, glad you liked it! Be sure to check out my blog for more scripts to simply your life 🙂

  19. Mike says:

    I found an excelent free extension for this, it’s name “Automatically Invite to like fb page” works like a script + scrolls and loads more buttons. Maybe it will be useful for someone. Also there is a possibility to scan reactions in all comments, very useful 🙂

  20. Haykuhi says:

    Code to invite all friends to a Facebook event at once doesn’t work 🙁

  21. Max says:

    Hi. I want to invite people who are interested in an event to like a page. Does it work too? I’m asking since your article specifies that your code is made to invite friends, not necessarily unknown people who just liked an event.

  22. ismoil says:

    hello Alejandro I am using this I send invitation but not selected number of people . What do you think invitation send or not because in my browser say 0 invited code is not working?

    elms = document.getElementsByName(“profileChooserItems”)[0];
    var tmpElms = [];
    var tmpElmsObj = {};
    elmsClass = document.getElementsByClassName(‘_1pu0’);
    for (i = 0; i < elmsClass.length; i++) {
    var id = elmsClass[i].getAttribute("data-reactid");
    var classActive = elmsClass[i].getElementsByClassName('_1pu2')[0];
    id = classActive.getAttribute("aria-labelledby");
    classActive.className = "_1pu2 _1pu3";
    classActive.setAttribute('aria-checked', true);
    id = id.split('-');
    id = id[0];
    tmpElmsObj[id] = 1;
    tmpElms.push(id);
    }
    document.getElementsByName('profileChooserItems')[0].value = JSON.stringify(tmpElmsObj);
    void(0);

  23. Reticuli says:

    “undefined”

  24. aditya says:

    does it invite people who have already liked the page also?

    1. no, those people are not available for selection since they already liked your page.

  25. Jairet says:

    Great post, Alejandro! It *kinda* worked. I used it for the event invite and it ended up sending the page like invite. I saw that you tested the script but asked for feedback in case it didn’t turn out that way for me. Any suggestions?

  26. Seth says:

    When I use it, it puts a check next to all the names, however where to the right it says “selected” not one of them are showing up.

  27. doesnt work for me…

  28. Jeremiah Collins says:

    not working. tried a colon, which appears to be what’s on the instructions, and a semi colon

  29. John Fuller says:

    The link to find out about the secrets behind SEO opens to a ‘404 not found’ page on your site.

    1. thanks for catching that, I just fixed it!

  30. John Fuller says:

    I found your site after I had noticed not very many friends were reached after sending out a friends invite to my new site.
    When I tried your option 1) there was no check mark in the Chrome browser panel (cos I use a mac??). When I tried the second option and opened the invite friends box – there was nobody there. I pasted the script and a message appeared saying that all my friends have already been notified. But I recall ticking ‘invite’ to about 40 people, whereas I have about 120.
    So I haven’t been able to send it out to all my friends.
    Ironically, I think FB chose the people I didn’t want to receive it – as it was to technophobes about me building them cheap websites from templates.
    I think the frieds which FB chose were people who can make their own.

  31. sudhira says:

    i tried it for my page but FB popped up a window telling me i was “misusing the feature by going too fast” and blocked me :/ any way round that? how long does it last?

    1. The block is just for a few minutes 🙂

      You can change this line
      for(var i=0;i

  32. Extension got me blocked from sharing with friends.

  33. Hey man!

    I clicked on the Messenger button to get the code and nothing happened! Where can I get that Invite Page javascript code?

    1. Anne-Marie says:

      I had the same problem!

    2. Here you go guys 🙂

      var inputs = document.getElementsByClassName(‘_1sm’);
      for(var i=0;i<inputs.length;i++) { inputs[i].click(); }

  34. Alex says:

    I think this feature just got even worse. People don’t even receive a notification any more when you invite them unless they are your friends.
    Check it, this happens for last 10 days!

  35. Berry says:

    Good write-up, I am normal visitor of one’s website, maintain up the nice operate, and It is going to be a regular visitor for a long time.

  36. Martin says:

    When I click on the “Get “Invite Post Likers” Code” Button on your page; I get re-directed to Messenger. However, I do not get sent a code? How do I get the code?

  37. Bryce Battershell says:

    FB is now blocking this, FB says, you used it to fast & have been blocked. It used to work great

  38. Nyein Chan Ko KO says:

    i cant get ur java script from messenger
    plz sent me. :*

    1. I updated the article and all the codes are there now 😉

      var inputs = document.getElementsByClassName(‘_1sm’);
      for(var i=0;i<inputs.length;i++) { inputs[i].click(); }

  39. lina says:

    Hey! Thanks for this. When I press on link to get the code through messenger, it directs me to my inbox. I can’t get the java script. Please help.

    1. Here it is!

      var inputs = document.getElementsByClassName(‘_1sm’);
      for(var i=0;i<inputs.length;i++) { inputs[i].click(); }

    2. Ken says:

      It’s not working at all! When you open the box up then scroll to bottom, type javascript:var inputs = document.getElementsByClassName(‘_1sm’);
      for(var i=0;i<inputs.length;i++) { inputs[i].click(); }

      It doesn't do anything at all

  40. adam says:

    wtf, step 1 and 2 didn’t work, and now I’m blocked from inviting my friends!

  41. Tanna says:

    I just tried this a few times and nothing happens.
    Any suggestion?
    Thanks

  42. amy says:

    dont works. and i got block from inviting friends

  43. I am working hard to produce new and valuable content. http://www.CFOlift.com

  44. hindi ganga says:

    Thank you boss for this amazing code. It’s working bro. Thank you

  45. Felicity says:

    Im having trouble adding people that like a post to my page… i post content videos in groups and other peoples pages and im trying to add the people that like those posts to my Business Page. I am working from a Mac book Pro, with firefox. It Just doesnt seem to want to work for me!

  46. Zoe says:

    this event invite code isn’t working for me. nothing happens when i paste the code in the address bar. i’ve tried several times to make sure. i’ve also tried some of the codes in your comments. not sure how to proceed.

  47. brobbey says:

    Nice article.. it was very helpfull

  48. Rich T says:

    Isn’t working as of April 7th 2018 :((

  49. Can you please tell me when people like on my post, now we can invite thous people. Will this plugin work for it?

  50. utham says:

    this trick doesn’t work as there is no option for inviting friends when you click on “…” . Please update the article !! 🙂

    1. Razvan says:

      Exactly. The Chrome extension won’t work for me either, ESET Antivirus prevents me from installing it, considering it a threat.

  51. Samantha Loeridge says:

    The code to invite all of your friends to a like page didn’t work for me. Used this same approach with other codes but haven’t been able to find a recent one that works! 🙁

  52. ravi gupta says:

    Amazing your blog thanks for sharing do you know SEO Agency In Delhi

  53. Itay Abramovitz says:

    The link is not working…

  54. Saad Wakeel says:

    Hello Alejandro!
    I tried using that script on chrome, but I am unable to invite my friends.
    Is this trick useless now?
    Please reply!
    Thanks!

  55. Aleksandar says:

    Hi dear Alejandro,

    this codes does not work for me.

    I want to invite all friends to an event.

    You got some idea how to do it?

    Aleksandar

  56. ger says:

    This didn’t work for me. Simply nothing happened. I pasted another code similar with an alert appended, and the alert came up, so there is a response. So I am in the right address bar. No boxes were checked or anything. I’m using firefox, with different plug ins, but then I used google with nothing just straight up and nothing happened- no boxes were checked I mean. Yes I scrolled down. yes i’m in the invite box. I watched people do this on youtube videos. I just get a non response- to the checking boxes, and I get a response to other javascript: requests. Also in the console it says something about a ) error in for-loop. Stack overflow people say get rid of the ;, but I tried that and nothing and I tried pasting your code exactly as you showed it multiple times, even modifying how much whitespace I have. Nothing. No response.

    My best guess- since a few other people said they got nothing- is that facebook changed something The other two people posted in 2018 and I’m posting this august 2018. I just got nothing. It’s frustrating. i want to both learn and to be able to invite people. I was looking forward to feeling powerful. Now at least I know more regarding what I don’t know.

    But it didn’t work. It- your code, did nothing on two browsers. Not trying to be mean, just reporting.

  57. Vixy says:

    Hi, thanks for your article. I can’t get it to work? I’ve put javascript: then your code. Nothing seems to happen and the send invites button is greyed out

    Many thanks for your help

  58. Morgan says:

    I am typing in your script after I scroll to the bottom of my event invite list and nothing happens. The address bar goes right back to my event url. I typed the following into the address bar. What am I doing wrong?

    javascript:
    elms = document.getElementsByName(“profileChooserItems”)[0];
    var tmpElms = [];
    var tmpElmsObj = {};
    elmsClass = document.getElementsByClassName(‘_1pu0’);
    for (i = 0; i < elmsClass.length; i++) {
    var id = elmsClass[i].getAttribute(“data-reactid”);
    var classActive = elmsClass[i].getElementsByClassName(‘_1pu2’)[0];
    id = classActive.getAttribute(“aria-labelledby”);
    classActive.className = “_1pu2 _1pu3”;
    classActive.setAttribute(‘aria-checked’, true);
    id = id.split(‘-‘);
    id = id[0];
    tmpElmsObj[id] = 1;
    tmpElms.push(id);
    }
    document.getElementsByName(‘profileChooserItems’)[0].value = JSON.stringify(tmpElmsObj);
    void(0);

  59. al says:

    this script no longer works unfortunately and the chrome plugin only does 50 max at a time and I just ended up sending multiple invites to the same people for some reason 🙁

  60. Douglas Campbell says:

    It’s worked for me, but I can’t get around the 500 limit. Help!

  61. Matt says:

    Is there a way to Re-Invite people who have already been invited one time but have not responded and liked your page?

    1. I don’t think so as of today. You wouldn’t want people to constantly invite you to like their page, right?

Leave a Reply

Your email address will not be published. Required fields are marked *