Hi there,
I’m upgrading from the old facebook code to v4.
I feel a bit sheepish making this post, as there is obviously something very basic I’m missing.
But first, it looks like there’s a problem with the documentation:
settings =
{
android =
{
facebookAppId = “XXXXXXXXXX”, – Replace XXXXXXXXXX with your Facebook App ID
},
},
Using this, I get an ‘incorrect capitilisation’ warning when Corona starts. If I change it to FacebookAppId with a capital F then the warning disappears.
Now as I said the problem I’m experiencing would appear to be a very simple one. This code that I’ve copied and pasted from the doco gives me an error:
local facebook = require( “plugin.facebook.v4” )
print( "Is a Facebook app installed and accessible? " … tostring(facebook.isFacebookAppEnabled()) )
"Bad argument #1 to ‘tostring’ (value expected)
facebook.isFacebookAppEnabled() doesn’t exist. The plugin is obviously loaded, otherwise I’d get other errors, so why can’t I make this function call?
I am using 2016.2992
thanks