Invite All Friends to Facebook Group/Page

on 17 January 2011

This is really frustrating for not being able to suggest or invite a facebook group, fan page or application profile page to all your facebook contacts in one click. How do you feel to select 500 friends with 500 mouse click?

But Finally We have its Solution.

We will use JavaScript code to invite our friends

  1. Goto your Facebook page. eg.
  2. Click “Suggest to friends” or “Invite to friends” on group, fan page or events page.
    invite all facebook friends
  3. A suggestion window will open. From the drop down menu, select search all friends Scroll down till it shows all ur friends.
  4. facebook-search-suggest-friends

  5. Paste the following code on to the address bar of your browser:
    javascript:function check_all_in_document(doc){var c=new Array();c=doc.getElementsByTagName('input');for(var i=0;i<c.length;i++){if(c[i].type=='checkbox'){c[i].click();}}}check_all_in_document(window.document);for(var j=0;j<window.frames.length;j++){check_all_in_document(window.frames[j].document);}

    javascript:javascript:var elms=document.getElementsByName("checkableitems[]");for(var count=0;count<elms.length;count++){var t = setTimeout("elms[" count "].click()",100)}
  6. If all goes well, it will select all of your friends!

Note: If you have a lot of friends it will take time to select all of your friends, you have to leave that window open for a long time. If you have many friends than instead of scrolling till the end you should scroll upto 100-200 friends and repeat the process for few times or otherwise the script may become inresponsive.

If you know any other method of inviting friends, you can comment here & dont forget to share this on Facebook.


Osman said...

This works for me on page and event, but how to use this in groups?

Post a Comment