Here is how you use the code to invite all friends to your fan page:
- Use Chrome as your browser for this exercise
- Edit Page>Use Facebook as {your personal profile name}
- Build Audience>Invite Friends
- Change the drop down menu from “Recent Interactions” to “Search all Friends”
- Keep scrolling down to the bottom of the list until all of your friends are shown in the window
- Hit CTRL+Shift+J on your keyboard
- Switch to the “Console” tab
- Paste the following code into the command line:
var inputs = document.getElementsByTagName("input"); for (var i=0; i < inputs.length; i++) { if (inputs[i].getAttribute('type') == 'checkbox') { inputs[i].click(); } }
- Hit Enter
- Click the Submit button and you’re done!
Tutorial Video
No comments :
Post a Comment