i need to add the facebook share button to my facebook instance game.
when i used folowing code
local json = {“intent” :“SHARE”,“image”:“”,“text”:“message”}
fbinstant.share(json,function(self, success)
end)
but it requires 64based encode image string. After using an online converter I got a 64based string.but defold engine did not allow to paste that string.i used 745 kb image to create encoded string
ARE THERE ANY SUGGESTIONS or library i can use to create 64 based encode string form image
I used 745kb image to encrypt.It generate long string and when i trying to paste that string , defold engine provide an error. then i try with 75kb image and it paste successfully.i think the problem occurs when user trying to paste long string.when i check the string it contain 745900 characters.
Wow Britzl, this is really great . I have been figuring out so many issues with the this code and this local data = sys.load_resource("/assets/shareImage.json").