Select Page

Hello Internet and welcome to a recent post from My Mind.  Today’s post come from a question by my good friend Jessica.  Jessica is a jewelry designer and the genius behind Industry Chains.

Jessica asks:  “Hey Nate, can you show me how to do that facebook friend invite thing so I can invite all my friends to a facebook event???”

Well Jessica, and the internet, here is the solution:

Note to Jess: Bookmark This Page for future reference!
Also, you can skip to step 8, I already did the other steps for you.
FYI, You might want to read the rest of the steps anyway.......

THE SECRET TO INVITING ALL YOUR FACEBOOK FRIENDS TO AN EVENT QUICKLY AND EASILY USING IMACROS WEB AUTOMATION SCRIPTING!

  1. ** IMPORTANT UPDATE **
    Firefox is NOT REQUIRED to run iMacros!
    iOpus has released iMacros for Chrome and Internet Explorer!
    But you should get Firefox and use it anyway, it is far superior.
    And Firefox has LOTS of AWESOME plugins!First things first, do you use FirefoxNO!!?!!  WHY NOT!!!
    To accomplish this tutorial you need should get Firefox!
    GO DOWNLOAD IT NOW!
    if you already have Firefox please proceed to step 2.
  2. ** IMPORTANT UPDATE **
    Firefox is NOT REQUIRED to run iMacros!
    iOpus has released iMacros for Chrome and Internet Explorer!Ok, great!  Now you have Firefox installed you are going to need a very special, SUPER AWESOME plug-in for Firefox your web browser called iMacros.iMacros is a Web Automation Scripting program and has a large number of functions and applications.  It is used for automatically interacting with a website or webpage and can be used to insert data to forms, scrape data and various other things.
    if you already have iMacros please proceed to step 3.
    Otherwise, please click the link and
    Install iMacros for Firefox!
    Install iMacros for Chrome!
    Install iMacros for Internet Explorer! 
    oh how i hate IE…
  3. Now that you have both Firefox and iMacros installed you are prepared, like a boyscout, to super quickly add all your Facebook friends to an event, like a ninja!  Now, open Firefox your web browser and click F8 or press the iMacros button, this opens and closes the iMacros panel that looks like this      >>>>>>>>>>>
    This is where you can ‘Play’ recorded macros,  ‘Rec’ord your own custom macro and also ‘Edit’ your macros.
  4. Go ahead and go to Facebook in Firefox your web browser and log-in to your account.
    (if you don’t know how to log into facebook then STOP reading this tutorial, throw your computer out the window and go eat crayons)
    Once you have logged into your account go ahead and create an event or click on your existing event and click
    Please NOTE:  If you did NOT create the event you must JOIN an event to see the button.
    (once again, if you do not know how to create a Facebook event either go figure it out or STOP reading this tutorial, stomp on your computer and go pet some kittens, the choice is yours.)
  5. Ok you should now be at this screen where you can check off all your Facebook friends you want to come to your event.
    If your like me, you have one friend: Kyle Broflovski.   You probably shouldn’t be reading this tutorial and should get a life before you get sucked into the virtual Facebook world.  However, for the sake of this tutorial I’m going to assume that you have HUNDREDS, maybe even THOUSANDS of Friends and you want to invite all of them to this fantabulous party or event.
    To do this we are going to write a Custom iMacros Script.  Press F8 to open the iMacros panel (if it isn’t already open) click the tab   and then click   It’s going to ask you:  “Would you like to close all tabs before recording?”  go ahead and click “No”  Now we are going to create our first macro.  Simply click the check-box for your first friend  and then click
  6. Congratulations, you have just created your first macro!  But don’t go celebrating just yet, you still need to modify the code before we can use it to quickly add all your friends to your Facebook event.
    Look at your iMacro panel and you will see a new macro called Select it and then click and then this will pop open a window where you can edit the text of your newly recorded macro.  Right now your macro should look like this:

    VERSION BUILD=####### RECORDER=FX
    TAB T=1
    URL GOTO=http://www.facebook.com/events/list
    TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ACTION:/ajax/events/permalink/invite.php?plan_id=#############&profile_chooser=1 ATTR=NAME:checkableitems[] CONTENT=YES

    VERSION is the current build of iMacros and the RECORDER used to record the macro.  This line is not important and can be deleted if you like.  The next line TAB tells the macro to run in tab 1, in this case this is not important and you can delete this line as well.  The third line URL tells iMacros to open the address for Facebook events, this will interfere with our script so we want to delete this line also.  Now you should only be left with the TAG line in your script editor.

  7. The next step is to modify the code so that it checks not just one of your friends but all your friends.  We are going to do this with a simple !LOOP.  We are also going to add an asterisk * to the FORM=ACTION: because the plan_id is going to change for each event.  Once modified properly your code should then look like this:
    TAG POS={{!loop}} TYPE=INPUT:CHECKBOX FORM=ACTION:*profile_chooser=1 ATTR=NAME:checkableitems[] CONTENT=YES

    If you want to you can just copy that code right there and paste it into your editor and your macro is all set! This should be the only line in your macro script.  I would also recommend that you now rename to something like ‘FacebookAddAll.iim’  You can do this by right clicking and selecting ‘Rename’  This ensures that if you record a new macro you don’t overwrite the code we just created.

  8. Now we are going to play the macro we just created and it will check off all of our friends in a row and invite them to our event!  To do this there are a couple important tips/tricks you must know.
    First of all, you need to know how many friends you have on Facebook.  You can find out by viewing your profile.  Once you know how many friends you have you need to click on the button for whatever event you want to invite everyone to.  Once you are at this window you will need to scroll to the bottom of your friend list so that everyone is pre-loaded and ready to be checked off the invite list.
    You are now ready to run your script!
  9. Go to the iMacros panel (press F8) and select the tab.  Make sure the proper macro is highlighted in the iMacros panel. (‘FacebookAddAll.iim’ or whatever you named the script)  Now you are going to need to type in the total number of Facebook friend you have under “Repeat Macro – Max:”  This is a very important step, you can type a larger number if needed but if you don’t do this correctly you may not invite everyone and the script will stop halfway through your list.  Now go ahead and click and watch the magic happen.  If you did everything correctly you can watch as all your friends get checked off the invite list.   If your script stops half way through double check that you put the right number in the ‘Max:’ field and start the script over again.  If your script doesn’t work at all (nobody gets checked off) make sure you copied the code correctly. Feel free to post any additional questions in the comments below.

If you need a custom iMacros script written for your own application feel free to contact me.  I specialize in web automation scripting, data scraping and auto-posting!  You can contact me with any questions.
Also feel free to check out my site and learn more about my professional services.