The Joomla! Extensions Directory ™


ZJ Facebook SDK Connect Plugin

Facebook Javascript SDK connect allows you to use XFBML method to show Facebook like, Facebook comments, .... on your site by XFBML tag without an iframe in your site.

For example: Like button plugin - please follow this link http://developers.facebook.com/docs/reference/plugins/like then create a Like button for your site content link. Then copy XFBML code to your site and check.

The JavaScript SDK enables you to access all of the features of the Graph API via JavaScript, and it provides a rich set of client-side functionality for authentication and sharing. The JavaScript SDK is also necessary to use the XFBML versions of the Social Plugins. Many functions in the JavaScript SDK require an application ID. You can get an app ID by registering your application.

For example: check out Facebook for Websites and the Authentication guide. We also have a JS Test Console which allows you to test and debug common JS SDK methods.

The most efficient way to load the SDK in your site is to load it asynchronously so it does not block loading other elements of your page:

window.fbAsyncInit = function {
FB.init({appId: 'your app id', status: true, cookie: true,
xfbml: true});
};
(function {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());

In the example above, the function assigned to window.fbAsyncInit is run as soon as the Facebook JS SDK is loaded. Any code you want to run after the SDK is loaded should be placed within this function and after the call to FB.init. For example, this is where you would test the logged in status of the user or subscribe to any Facebook events your application is interested in.

The SDK is open source and is available on GitHub.

* Core Methods
* Event Handling
* XFBML Methods
* Data Access Utilities
* Canvas Methods

Plugin configuration

* Application ID: Application ID from your Facebook Application settings. Follow this link to register an AppID for your site right now http://developers.facebook.com/setup/
* Facebook Language: Specify the language in which you want the Facebook JavaScript SDK to use. Default options defaults to your site language. You can set it to users browser language or choose one from list

For more information you can follow this link to learn how it works

http://developers.facebook.com/docs/reference/javascript/

(Source facebook)

Report Extension

 

Images

 

2010-12-30
Reviews: 1
This was the second download for FB LIKEBOX I've tried. The first did not work as easily or as well as a module. This plugin gave me exactly what I created via FB LIKEBOX setup. It was as easy as copying the code from the FB setup, then inserting it into a custom HTML module for my site. Voila! Worked like a charm! Thank you.