Jump to content

Issue with FBInstant.ShareAsync


Lawbirth
 Share

Recommended Posts

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.

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...