Facebook Application

From Wikicliki
Jump to: navigation, search

Useful guides

http://wiki.developers.facebook.com/index.php/Anatomy_of_a_Facebook_App

http://devtacular.com/articles/bkonrad/how-to-style-an-application-like-facebook/

http://www.keebler.net/blog/2007/06/02/facebook-application-basics/


SOCIAL MEDIA

Here are links from the offical facebook page on how to add the LIKE button to any webpage: http://developers.facebook.com/docs/guides/web http://developers.facebook.com/docs/reference/plugins/like

How to import external Wordpress blog into facebook: http://www.facebook.com/help/?search=import+blog


Since the number of pages are quite fixed (and not about to change in number), I suggest we make a customised template for a specific type of PAGE (not POST) which has the LIKE button below it. One option is to enable the pretty permalinks in WP, come up with a logical file name system and hardlink most things to their pretty permalink URL directly

How to add facebook LIKE button to Wordpress:

Add an iframe to the default single post template (usually single.php) - something like this:

<iframe src="http://www.facebook.com/widgets/like.php?href=http://example.com"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>

instead of http://example.com, you can substitute it with the generic code for getting the wordpress post permalink, which should be:

<?php echo urlencode(get_permalink($post->ID)); ?>

thus making the final code:

<iframe src="http://www.facebook.com/widgets/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>"
        scrolling="no" frameborder="0"
        style="border:none; width:450px; height:80px"></iframe>