02 Jun 2010

A clever trick to automatically invite all your Facebook friends to be fans of your page

16 Comments facebook marketing and advertising

For folks that have a personal profile (a “standard” account), you can use a clever trick to invite all of these friends to fan the page.  There is no way to automatically import.  When you’re on the Facebook fan page that you want to invite all your friends to, you hit “suggest to friends” under your profile picture and then paste this code into the address bar to automatically select everyone:

javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}

If you have thousands of friends, like I do, then this will save you hours each time.

Tags: ,
written by
Facebook data and ads geek relentless in measuring real ROI. Chief Technical Officer of BlitzMetrics. Google+
Related Posts
Loading Facebook Comments ...

16 Responses to “A clever trick to automatically invite all your Facebook friends to be fans of your page”

  1. Reply Benn says:

    Hi Dennis,

    I just tried to copy paste that JS to the address bar, clicked enter but nothing happens after. Maybe you can post up some screenshots on how it works?

  2. Reply Chris says:

    Great trick Dennis, thanks for sharing this!

  3. Reply TrafficColeman says:

    Howdy,

    Facebook is center around friends that you can contact at will and discuss situations. My experience with it is that its no differ than any other social

    marketing concept…find friends.. and request more friends.

    I wrote a article on my blog about the friend gathering process that most people use to gain more friends on facebook. I must say that blog got a lot of

    attention by thousands of curious people who wanted to know how they can gain more friends fro face book without the spamming.

    It was my goal to show people that it doesn’t matter if you got 100 facebook friends or the limit of 5,000…if no one knows who you really are, than doing

    friend request is just a waste of time.

    You must concentrate on branding yourself before doing face book friend invites.

    Thanks for letting me post my crazy thoughts..

    TrafficColeman ‘Signing Off”

    • Reply Dennis Yu says:

      @TrafficColeman and @kmander– totally agreed! With anything, overuse of a tactic is spam, as well as promoting items that are irrelevant to your friends. Bad taste whether on the internet or not. I’ll use this tactic once every few months– while I normally manually invite friends to items that I specifically choose.

  4. Reply keith mander says:

    I’m with TrafficColeman – doing this repeatedly will just end up resulting in yourself being branded as a spammer. I’ve de-friended someone before for continually inviting me to join a Page – it became ridiculously annoying.

  5. Reply james says:

    Please enlighten us on how this works! Maybe a screenshot or quick camstasia

  6. Reply Jeremy says:

    great tip..not sure if it worked..you paste that code into the “Find Friends” search box? When you paste the code, it doesn’t select all friends..Is it b/c I have a Macbook? You rock! Thanks in advance for clarifying..

    • Reply Dennis Yu says:

      Should work in FF and Safari on Mac– my main computer is a Mac. You’ll know it works when you see all your friends highlighted in the suggestion box. Are you pasting the url into the browser address bar, as opposed to one of the Facebook search boxes?

  7. Reply AC says:

    Thanks for posting. When I paste: javascript:elms=document.getElementById(‘friends’).getElementsByTagName(‘li’);for(var fid in elms){if(typeof elms[fid] === ‘object’){fs.click(elms[fid]);}}

    I just see a blank page where all my friends were. Does this still work on FB? Much thanks. :)

  8. Reply Adam says:

    Please provide a screenshot or camtasia video for us newbies to learn from I still can’t figure it out…

  9. Reply Ben Linford says:

    Neat little trick.
    It’s a shame about the complexity of the method for the basic user, but that can’t be helped, as it’s obviously just a workaround for a Facebook restriction.

  10. Reply Cayman Sanders says:

    Nice trick, I’m going to have to think of some way to use this!

  11. Reply Ann Baker says:

    Hi Dennis -

    I’m having the same problem. I’ve tried pasting the code into the box next to “Find Friends”: and then the area that was featuring my friends’ photos goes blank. Am I pasting the code in the right place?

  12. Reply google adwords tool says:

    Thank you for any other excellent post. The place else may anybody get that kind of
    info in such a perfect means of writing? I have a presentation subsequent week, and I am at the look for such info.

Leave a Reply