facebook.* (legacy)

Type Library
Library facebook.*
Revision Release 2022.3683
Keywords facebook
Platforms Android, iOS

Overview

This plugin provides access to Facebook Connect, a set of APIs for accessing the Facebook social network. The functions allow a user to login/logout, post messages and images, and retrieve status.

Important

This is the legacy plugin for Facebook. As of October 30, 2016, Facebook's Graph API v2.1 will no longer be available. Thus, we encourage all Corona developers to upgrade to the latest Facebook plugin which supports Graph API v2.8.

Registration

Developing for Facebook requires that you register in the Facebook Developer Portal.

Syntax

local facebook = require( "facebook" )

Functions

Properties

Project Settings

To use this plugin, add an entry into the plugins table of build.settings. When added, the build server will integrate the plugin during the build phase.

settings = {

    plugins =
    {
        ["facebook"] =
        {
            publisherId = "com.coronalabs"
        },
    },
}

Support