Sign in to follow this  

Issue with FBInstant.ShareAsync

Recommended Posts

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);
      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 404".
I've tried also with static string for both text and image, but nothing change.

Any advice? Thanks in advance.

Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.