Type Library
Revision Current Public Release (2014.2393)
Keywords facebook
See also Facebook Portal Setup
Implementing Facebook


The facebook library provides access to Facebook Connect, a set of web API's for accessing the Facebook social network. The functions allow a user to login/logout, post messages/images, and retrieve status.

You must ensure your app works properly with single-sign on (SSO). Please read the Facebook Portal Setup guide for more information on how to implement single sign-on in your Facebook-enabled apps.


In the Corona Simulator, the APIs in this library do nothing. They are only functional on iOS and Android devices, as well as the Xcode Simulator.


As of Corona SDK Build #2165, Facebook for iOS has been removed from the core and is now implemented via a plugin. If you're using this build or later, you must include the following in the build.settings file. On Android, Facebook is not a plugin, so you must include the supportedPlatforms line if you're building cross-platform.

settings = {

    plugins =
        ["facebook"] =
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, ["iphone-sim"]=true },



Useful Resources