If you are like me (and many others), you joined Facebook in the days before company pages. As such, you have been fighting the battle of comingling business content with personal content. Many people have created separate pages – one for business and one for personal.
If you have a business page, it can be hard to move your friends over to your business page. Without the trick I am about to show you, it requires you to click the hundreds of boxes next to each person’s page.
Here is the trick (watch the video). After watching the video, click on to the next page for the step-by-step.
1) Log into your personal page.
2) Navigate to your business page (if you don’t have a business page, build one first – here is an article on how to do that).
3) From your business page, go to the “Invite Friends” feature in the left hand navigation rail
4) A pop-up light box appears; the default will display “Recent Friends.” Using the drop down arrow, select the “Search All Friends” option. It will take a while for this list to load. Be sure to use the scroll bar, and scroll all the way down the page until your complete friends list loads. **very important to wait**
5) Last step is to paste this code into your browser URL address and click enter:
javascript:elms=document.getElementsByName(“checkableitems[]“);for%20(i=0;i
or
javascript:var x=document.getElementsByTagName(“input”);for(var i=0;i<x.length;i++) {if (x[i].type == ‘checkbox’) {x[i].checked=true;}}; alert(‘Done, please scroll and repeat until all your friends have been selected’);
6) You will notice that this code will automatically check all of the boxes for all of your friends in the pop-up light box. With them all selected, click “submit”
You are done.



It's not working for me I keep getting a message an error message, then I noticed that when I copy and paste everytime I paste to the address bar the word javascript is missing. I pasted to a word document and it was all there. I then cut everything from the word document and again javascript doesn't paste. So I typed it in and nothing happens when I hit enter.
Hi Mark, are you using Firefox or IE? I found that IE works best for this, and if the above Java Script isn't working, try this one:
javascript:var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].checked=true;}}; alert('Done, please scroll and repeat until all your friends have been selected');
Please let me know if that one works for you.
it is not working for me, i use google chrome
i also went to IE and tried, still doesn't work
Hi Jeanne, try this code and let me know if it works:
javascript:var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected');
For me, it doesn't work in chrome. Only the second one works in IE8
This is not working for me either.
Not working..or am I impatient? I have over 1,800 friends…
It appears this method assumes we want to transfer 100% of our Facebook friends to our business Facebook page. It is not realistic to expect everyone will want to transfer 100%…
This doesn't "migrate" or "transfer" your friends to your page. All this does is "invite" your current friends to "Like" your page.
unfortunately I could not get it to work in IE or Chrome…
This didn't work for me either…
Neither Java Script worked for me either after multiple attempts. Received error messages; second script directed me to Google search.
Hi folks, dealing with Java scripts can be tricky depending on what browser you are using. If one code doesn't work, try a different one. Here is another one that I just tested in IE 8:
javascript:var x=document.getElementsByTagName("input");for(var i=0;i<x.length;i++) {if (x[i].type == 'checkbox') {x[i].click();}}; alert('Done, all your friends have been selected');
Remember to be patient while this list is loading – this time-saving trick is definitely worth while!
Thank you for your help. I get the error massage "Internet Explorer has modified this page to help prevent cross-site scripting" when I copy/paste the script and hit enter.
message that is……….
Hi Craig, I found these codes online but they didn't work for me. Depending on your browser, they may work for you:
javascript:elms=document.getElementById('friends').getElementsByTagName('li');for(var fid in elms){if(typeof elms[fid] === 'object'){fs.click(elms[fid]);}}
javascript:(function(){var f=document.getElementsByClassName("fbProfileBrowserListContainer");for(var i=0;i<f.length;i++){if(f[i].children){var c=f[i].getElementsByTagName("input");for(var l=0;l<c.length;l++){c[l].click();}}}})();
Thanks. Neither of these worked with my browser. It must be the settings that is preventing this from working.