facebook.isFacebookAppEnabled

Type Function
Return value Boolean
Revision 2017.3060
Keywords facebook, isFacebookAppEnabled
See also facebook.*

Overview

Determines if a Facebook app is installed and accessible on the device. Some behaviors of the Facebook plugin differ depending on whether a Facebook app is installed or not. Using this API can help optimize the user experience depending on this factor.

Syntax

facebook.isFacebookAppEnabled()

Return Value

This function returns true if a Facebook app is installed and accessible on the device, with the following caveats:

Example

local facebook = require( "plugin.facebook.v4" )

print( "Is a Facebook app installed and accessible? " .. tostring(facebook.isFacebookAppEnabled()) )