Hello,
I’ve been trying to get the Facebook extension to work on Android, but it crashes on the login function. I’m bundling the build in a Windows machine. In iOS, it seems to be working well.
I’ve followed this manual: https://www.defold.com/manuals/facebook/ to set it up.
I’ve got my key hash in, and for Class Name, I’ve put “com.dynamo.android.DefoldActivity”.
In the editor side of things, I just added the App Id into the Facebook section of game.project.
I also tested this on a clean project, and it’s crashing too. No logcat information about the crash.
This is the code I’m using:
local permissions = { "publish_to_groups" }
facebook.login_with_publish_permissions(permissions, facebook.AUDIENCE_EVERYONE, function(self, data)
if (data.status == facebook.STATE_OPEN and data.error == nil) then
print("Successfully logged into Facebook")
else
print("Failed to get permissions (" .. data.status .. ")")
end
end)
Did I set things up wrong? Am I missing something?
Thank you