About Facebook SDK

A simple markup module to include the Facebook SDK as per the asynchronous method. It will catch any calls to /channel.html, allowing easy setup optimised for cross domain issues on IE.

Category 1Markup Generation
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
Category 2Social, Feeds, Services
Modules that provide or work with social networking services and/or external feeds.
Release StateBeta
Close to stable, but users are advised to be cautious and test thoroughly.*
Authorffub
Module Version1.0.0
Class NameMarkupFacebookSDK
Compatibility2.1, 2.2
Date AddedJuly 26, 2012
Last UpdatedJuly 25, 2012
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

Install the module and enter your AppID in the module configuration.

In your template, you can include the JavaScript using the render() method.

Code:
<?phpif($modules->get("FacebookMarkupSDK")) { $fb = $modules->get("FacebookMarkupSDK"); echo $fb->render(); } ?> </body> </html>

README

Facebook SDK inclusion for ProcessWire

ProcessWire module to include the Facebook SDK as per the asynchronous method. It will catch any calls to /channel.html providing the neccesary script include to get around cross domain issues in IE.

Usage

Install the module and enter your AppID in the module configuration.

In your template, include the JavaScript using the render() method.

<?php
if($modules->get("FacebookMarkupSDK")) {
	echo $modules->FacebookMarkupSDK->render();
}
?>

</body>
</html>

Comments

  • je

    je 4 years ago 00

    Hi,

    thanks for this module

    what is the AppID?

    cheers

  • eo

    eo 3 years ago 00

    The Class called "MarkupFacebookSDK" not "FacebookMarkupSDK". What is to do, when there is a nother facebook icon on the same site with id="fb-root" and a facebook inline script? Thanks!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.