i have developed an FB instance game, now I need to build android version.to share function i hope to use https://github.com/britzl/defold-sharing extension
so i need to choose share lib according to the platform, now i am using the following code.but i think it needs to have a better way to do this.please help me
if self.instanceGame ==true then
local args = data
if type(args) == "table" then
args = rxijson.encode(args)
end
fbinstant.share(args,function(self, success)
print("Shared mesaage successfully")
end)
else
share.text("Monkey shooter")
end
end