Facebook changes the way a feature is implemented into your site and the way you register an app about every two weeks. As soon as I write something Facebook changes everything again. It's driving me crazy...
Anyway the update of the book which I plan to send out this weekend should address this issue (at least for the next few days...)
Basically the code now should be something like this:
Where you have to replace APP_ID with your ID if you don't have a Facebook App ID yet create one as follows...
To create an application go to this page
. Please note that you have to verify your account by providing your mobile phone or your credit card to be able to create an application (I don’t know which is worse...). Once you’re on the page enter your website’s name (iWeb FAQ) and its URL (http://iwebfaq.org/
). Choose the language and hit “Create application”. Fill in the security check and “Submit”. On the next screen you will be shown your App ID (which looks something like this: 1483648451XX623) copy it. You will need it later on. If you already created an application for the site but don’t have its App ID anymore go to this page
, choose your website’s application and copy the App ID.
Hope this helped,