FBML Error (line 11): illegal tag “body” under “fb:tab-position”

Errors while loading page from application
Parse errors:
FBML Error (line 11): illegal tag “body” under “fb:tab-position”

If you are using IIS, you may see the above message when you add a tab to your facebook page. It is because IIS doesn’t allow POST requests to html files by default.

Solution 1: Configure your IIS to accept POST requests to html files

Solution 2: Change your .html into .php

Remove the default post footer

“This entry was posted on Wednesday, December 2nd, 2009 at 10:00 pm and is filed under ‘category’. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.”

Steps to remove the above paragraph:

1. Login as administrator

2. Select ‘Appearance’ > ‘Editor’

3. Select the current theme

4. On the right hand side, select Single Post(single.php)

5. Search “This entry was posted” and delete the relevant code

6. Click ‘Update File’

Preload Images

<script type=”text/javascript”>

function preloadImages()
{
var images = [];
var args = preloadImages.arguments;
for (i = 0; i < args.length; i++) {
images[i] = new Image();
images[i].src = args[i];
}
}

preloadImages(“image1.jpg”,”image2.jpg”);

</script>

SEO Rules

  1. Contain keyword in html title, description and keywords meta tag
    <title>SEO</title>
    <meta name=”description” content=”SEO”>
    <meta name=”keywords” content=”SEO”>
  2. Unique title, description meta tag for each page
  3. An exact match of the keyword / Put title at the begining
    BEST: <title>SEO</title>
    GOOD: <title>SEO – web developer blog</title>
    POOR: <title>web developer blog – SEO</title>
  4. Wrap the keyword with <h1><h2><h3><b><p><i>
  5. Contain the keyword in your domain name, folder name, page name
    e.g. http://www.seo.com/seo/seo.html
  6. Use hyphens (-) instead of underscores (_) in the URL
  7. More synonyms of the keyword
    e.g. ‘Search Egine Optimization’ is a synonyms of ‘SEO’
  8. Contain keyword in the image name and alt
    <img src=”seo.jpg” alt=”seo”>
  9. Contain keyword in your anchor text and link’s title
    <a href=”xxx” title=”seo”>seo</a>
  10. Text link is superior over image link. Put text link before any image links because search engine would only read the first one
  11. Include Content-Language meta tag to let search engine bots know the language of your site
    <meta http-equiv=”Content-Language” content=”zh-tw”>
  12. Newer ‘Last Modified Day’ would have higher ranking
  13. Higher Google’s PR value (PageRank) would have higher ranking. The PR can be found from google toolbar
  14. More incoming links
  15. More outgoing links
  16. Include a site map or navigation bar to let search engine bots to find your pages easier
  17. Create an XML Sitemap file using:
    https://www.google.com/webmasters/tools/home?hl=en
  18. Two clicks to any page. Make sure no page deeper than 4 clicks
  19. Keyword density should not be too low or too high (below 7%). Keyword density could be checked here:
    http://www.keyworddensity.com
  20. Create a custom 404 page with a link to root page or other pages
  21. Add rel=”nofollow” to user comment area to maintain site reputation
  22. The geographic location of your server should be in the same country of your target users
    e.g. Do not use a US server to host a Chinese site
  23. Improve site speed

Add a Facebook Share Button to your website

1. Enter the following page:
http://www.facebook.com/facebook-widgets/share.php

2. Select the options you like

3. Copy the code and paste on your own web page

4. On the page that you want to share, add the following lines:
<meta name=”title” content=”Enter the title here” />
<meta name=”description” content=”Enter the description here” />
<link rel=”image_src” href=”http://xxx/preview_image.jpg” />
Facebook would generate the post content based on these tags.

For more information, you may visit:
http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags

Setup your Facebook application on a page tab

1. Enter ‘Developer’ application:
http://www.facebook.com/developers/

2. Select your application (Create one if you do not have one)

3. Select ‘Edit Settings’

4. On the ‘Authentication’ tab, Check the ‘Facebook Pages’ box of the ‘Installable to?’ field.

5. On the ‘Canvas’ tab, fill in the ‘Canvas Page URL’ and ‘Canvas Callback URL’. Canvas Page URL will be the url of your application. Canvas Callback URL will be the content of your application.

6. On the ‘Profiles’ tab, Enter ‘Tab Name’ and ‘Tab URL’. Tab URL will be the content that show on your page tab.

7. Click “Save Changes.”