facebook.accessDenied

Type Boolean
Library facebook.*
Revision Release 2024.3703
Keywords facebook
See also Implementing Facebook

Overview

Queries iOS to see if access to the Facebook integrated account has been denied.

Syntax

facebook.accessDenied

Examples

local facebook = require( "facebook" )

if ( facebook.accessDenied ) then
    native.showAlert( "Facebook access denied", "Please go to Settings > Facebook and enable access for this application." )
else
    facebook.login( appId, facebookListener )
end

facebook.publishInstall( "XXXXXXXXXX" )  --replace XXXXXXXXXX with your Facebook App ID