Lawbirth

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Hi, in some devices (Galaxy S8 and Galaxy S5 Neo, as far as I could see), not always this metod seems to resolve. I have an Invite function in my Unity Game, but when I try to use Choose Async, it catch an error about "game not started". So I tried the following: console.log("Starting Game"); FBInstant.startGameAsync().then(function () { console.log("Started Game"); }).catch(function(error) { console.error(error); }); In the rare cases where invite works, also I get the "Started Game" log. But when it does not work, I can't get neither the log nor the error. Is there something wrong? Thank you.
  2. @Noel Yes, sorry. Maybe I didn't explain myself correctly. I mean, I've tried with harcoded text. Also, when the text is not hardcoded, Pointer_stringify is necessary. Those are two separate tests. So hardcoded text, without Pointer_stringify, does not work as well. I've also noted, on iOS from messenger app and facebook app the text is showed correctly, so it doesn't work only on android and desktop browser.
  3. Hi @Noel, thank you for your reply. Unfortunately I've alredy tried with hardcoded text, but the result is the same. Pointer_stringify is necessary, according to https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html , without this you obtain a pointer, which is not what is needed.
  4. Hi,I'm trying to use FBInstant.ShareAsync from a game made with Unity.My function is ShareAsync: function (base64Picture, text) { var img = Pointer_stringify(base64Picture); FBInstant.shareAsync({ intent: 'REQUEST', image: img, text: Pointer_stringify(text), data: { myReplayData: '...' } }).then( function() { console.log("sharing is done"); }) .catch( function(err) { console.log('failed to share: ' + err.code + " :: " + err.message); }); } I can correctly see the image but no text appears, and I have three errors in the console repeating:"POST https://www.facebook.com/react_composer/logging/ods/?event=bootload_start&attachment_type=MEDIA 404".I've tried also with static string for both text and image, but nothing change.Any advice? Thanks in advance.