.

Monday, June 28, 2010

JavaScript SDK for Facebook Developers

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. To use the JavaScript SDK, you must register your application. Make sure your Base Domain is set to the base URL of the site where your application will reside.
For example usage, check out Facebook for Websites and the Authentication guide.
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:

The SDK is open source and is available on GitHub.



Core Methods

Make a API call to the Graph API.
Find out the current status from the server, and get a session if the user is connected.
Synchronous accessor for the current Session.
Initialize the library.
Login/Authorize/Permissions.
Logout the user in the background.
Method for triggering UI interaction with Facebook as IFrame dialogs or popups, like publishing to the stream, sharing links.

For more details .. 

0 comments:

Post a Comment

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Macys Printable Coupons