JavaScript

Facebook: Share, Like, Comment

This is how to utilise the Facebook JavaScript SDK to add Share, Like and Comment for your site:

Step 1, Get an App Id here.

Now the popup complains that “Given URL is not permitted by the application configuration”. Go to step 2.

Step 2, Add Platforms:

FacebookPlatform

Step 3, Follow the steps here.

Script roughly looks like this:

Facebookshare

Standard