fbpx
Scripts

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

facebook invite all friends
Comments (131)
  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

    4. It doenst work….please help…i have like 10 eventssss….

  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?

  62. Jim McCall says:

    I tried the javascript pasting trick in Chrome and got now result – it was as if nothing happened. I don’t know if I missed part of it, but it was unsuccessful. I was doing this in a band site and maybe that’s it? If you did that trick in youtube, it might be a better method of explaining it. Btw, I have two band FB sites that I administrate, and my attempts to merge them do not succeed. I wish I could figure that out.

  63. Carlos says:

    Hi Alejandro,
    Sorry to bother, do you know if there is a way to choose from a friend list?

    With my group: i could create an event an invite all the members of the group. But that was with a small group.

    Then my group had a “big succes”, it grew from 50 to 250 …

    And the invite events changed: i could only invite people on the group THAT is ALSO my fb friend personal profile
    So facebook rolled the friends list, and in order to preventing from spamming firends not concerned with a subject i created very specifs friends list.

    So i could chose on the group event : invite mutual friends of the group AND my profile, AND use the friendlist i wanted.

    THEN it changed again,
    i have know more than 2500 people on the group
    when i create a group event : facebook dosent invite any member of the group… this is of course stupid…because people decided to be on the group…
    and know i have to manually chose from a list of friends to invite, but this list i dont know how they choose it.. because i have friends that are not listed on that list. and i can not choose between the friends list i created.

    so if you have any idea of how to achive this 🙂
    thanks

  64. phini says:

    nice article really help

  65. Stef says:

    Doesn’t seem to work anymore in either Chrome or Firefox. Would you be so kind as to update your solution for all of us? Thanks! 🙂

    1. which part is not working?

    2. Andrea says:

      Also for me, seems doesn’t work anymore… Thnx!

  66. Delarey van Zyl says:

    Hi there, is there a way to invite all of your friends at once to your facebook watch party? I have almost max and it takes too long to click invite for 5000 people. Any help will be much appreciated 🙂 Thanks

  67. Trevor says:

    Hi Alejandro.

    The Invite All Javascript code was working for me about a month ago, and now unfortunately it doesn’t do anything after I hit enter. Could you please try updating it?
    Thanks

  68. Thank you, Alejandro Rioja!

    With just a few tweaks your method worked perfectly!

    GO BRUINS!

    Smitty Class of 2012

  69. Chris says:

    Hey Alejandro,

    Concerning “Invite people that liked your post to like your page on Facebook”

    1 Do you know of any script that would invite anyone who liked any past post?

    2 If I were to go into the likes menu for multiple posts and run this script, would it send multiple invites to a single users if they’ve liked multiple posts?

    1. 1) you will need to do it on a per post basis
      2) it will only invite them once

  70. Trevor says:

    Hi Alejandro.

    Could you please take another look at the javascript code from section 3: Facebook Event Invite Code? The code used to work for me, but for the last month or so it doesn’t select any people anymore. Facebook must have changed something up in the UI a little.

    Thanks in advance!

  71. Good post. I learn something totally new and challenging on sites I stumbleupon every day. It will always be useful to read through content from other writers and use a little something from their websites.

  72. Alex Douglas says:

    You said “notice the semi colon” but it is a colon in the example above. Which is it supposed to be please?

    1. fixed! It was supposed to be a colon (:). Thanks for the catch!

  73. Greg Clark says:

    Hi–great site!
    is there any way of inviting my followers on my personal page to like my new page? I have 20,000 followers so inviting one by one won’t work very well!

    Also, regarding your “Invite people that liked your post to like your page on Facebook)” solution I have a post that went viral. Is there any trick you might suggest for scrolling to the end of the likes list as just scrolling manually would take forever !
    Thanks

  74. Michal Kilpatrick says:

    Hello there Alejandro,
    I can not get it to work. I type javascript: and paste the code and nothing happens. If I hit enter after pasting the code, the code disappears and the FB url comes back. Please help.

  75. Petra says:

    same as Michal Kilpatrick . Code used to work fine, but not for the last few months….

    1. i’ll try to update it soon!

  76. ROn says:

    You are the boss, lol my boss just asked me to invite 2500 people after doing 10 I realized I couldn’t click 2000 times. plus the scrolling. SO I am running you code, and its doing its thing. did I test on fewer individuals at first,.

  77. Ron says:

    Oops just got banned from inviting more friends for now! figures, anyway it works very well! Thanks!

  78. Tamil News says:

    is there is a way to like facebook page in one click Youtube channel subscribe?

  79. Reuben Das says:

    Hello, thanks for your help!

    Facebook seems to be using React Virtualized to render the list of friends and the max number of div’s currently in a view are 11. The script works for 11 friends at a time if I change the script to –

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

    Is there a walkaround to force react to render the full list of friends and then run this script? Or maybe mimic scroll and run the script in a loop till every element is selected?

  80. Mark says:

    Alejandro, please update the script. I had a post go viral, reaching nearly 5 million people and had over 70,000 reactions. I would like to invite them all at once. This java stuff is not my thing. I have manually invited everyone up to this point since my page was established in 2017. Check out The Mark White Show. If you can help, I will get you on the show.

    1. Hey Mark, just updated it for you!

      var inputs = document.querySelectorAll(‘a._42ft._4jy0._4jy3._517h._51sy’);
      for(var i=1; ihttps://www.facebook.com/riojaalejandro

  81. Talha saleem says:

    Bro i tried on firefox my browser hanged for 5 minutes Facebook said its spam and blocked my id for 3 days
    Can you help me bro?

  82. Manoj kumar says:

    Hello sir it didn’t work i tried 5 times on google chrome browser can you help me?

  83. David Lee says:

    sorry but for the event invitation, it doesn’t work at all on either Safari or google chrome. I’ve tried the exactly what you said above and even asked our team members to do that with reading it over and over. Doesn’t work.

    1. Just tried it, it worked on my end. Please give it another try 😉

  84. Yo Movies Bollywood says:

    great work man. I really like it and also agree with you.

  85. nanniestubbs31 says:

    Hi there, of course this article is in fact nice and I have learned lot of things from it concerning blogging. thanks.

  86. Joel Anthony says:

    Hey admin. I think this code is out dated. And is going to be riskful for facebook new updates.

  87. Michele says:

    AM i blind? Where is the script?

    1. it’s in the post, please disable adblock

  88. John says:

    Where is the script and the instructions???

    1. it’s in the post, please disable adblock

  89. Donna Hoelke says:

    Hi Alejandro- I tried your code for adding all friends to an event invite. I entered as you instructed, but nothing happens when I paste the code. The “send invite” button stays greyed out. Is there a new code? Many thanks!

  90. texasaa says:

    Code – Script… This is 2019 there should be a button that says Send All or Invite All, most FB users don’t have time or the ability to work through this. Computers are supposed to be a time saving machine, not need a college education to use it.

  91. Joel says:

    Doesn”t work for me, same happens as above.

Leave a Reply

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