How to Get More Facebook Likes for Your Website and Fan Page
Using the Facebook Javascript SDK
Some features for the Facebook Like options are only available if you use the XFBML code for the buttons. In order to use XFBML, you must implement Facebook’s JavaScript SDK onto your website. It’s not just an additional line of code, however. You have to have an Application ID to use the JavaScript SDK.Creating a Facebook Application for Your Website
So let’s look at creating an application on Facebook – it’s easier than you think!Step 1: Create an App
To create an application for your website, you will want to start on the Create an App page and enter your site’s name, URL, and language.
Click on the Create an App button to continue, and enter the captcha.
Step 2. Copy Your Application Data
On the following screen, you will get your App ID and Secret Key. Be sure to keep this handy as you will need it to implement some of the following Facebook Like code.
You can also get it by visiting your Applications Dashboard at a later date.
Installing the JavaScript SDK on Your Website
Next, you will want to install the JavaScript SDK on your website using the code on the JavaScript SDK page.
There are two versions of the code as shown above – I personally go with the code under Loading the SDK Asynchronously as this option will make sure that, should the Facebook code not be responding, it will not hinder other objects from loading on your page, leading to faster page load times.
You will want to replace the text YOUR APP ID in either version with the App ID you generated earlier. Then place this code between your website’s <HEAD> </HEAD> tags. Depending on your CMS, you may need to place this in your header.php file or similar header template file.
Now that we have the JavaScript SDK covered, let’s move onto Facebook Like buttons.
No comments:
Post a Comment