Facebook provides many different API's in a variety of languages (JavaScript, PHP, Ruby, Java, etc.), which easily integrate into your toolbar or App via HTML components and custom gadgets. Conduit suggests two main methods to easily integrate your Facebook application into your Conduit toolbar or App, regardless of the language(s) you run on your backend: Facebook Connect, and 3rd party cookies.
- Facebook Connect:
Facebook Connect can be used to allow your users to securely log in to Facebook via a toolbar component or App. Once logged in, the calling page (in this case, the HTML App or gadget) has access to all the logged-in user's information using Facebook Connect in JavaScript via the Facebook JavaScript Feature Loader.
To see an example of Facebook Connect in a real-life application, visit the Conduit App Marketplace, and install the Facebook Live Notifier component! More information on the Facebook Connect API can be found here.
- 3rd Party Cookies:
Another method of sharing data between your Facebook application and the toolbar front end is by using 3rd party cookies. Using this method, your Facebook canvas page passes user information as URL parameters via an iFrame on the Facebook canvas page. The destination URL of the iFrame (the iFrame 'src') saves the passed parameters as a cookie to the local user's system via cookies.
Once this information is saved to the user's system via a cookie, the toolbar or App can now read these cookies and perform a direct connection to your backend servers using the user information as key data.

The 3rd party cookie method is best used when you wish to force the user to login to your existing application's Facebook canvas page before passing the logged-in user information back to the backend servers.