Jump to content

Share with friends in Facebook Instance API


Appolos
 Share

Recommended Posts

 have game on Phaser 2, I start integrate it in Facebook. And have some problem with function that allow user to share with friends.

1)Here example of code:

let msg = 'Try this game'
    FBInstant.shareAsync({
      intent: "REQUEST",
      image:user.playerPic,
      text: "Hey I'm stuck on this target! Can you help me?",
      data: {myReplayData:msg}
    }).then(() => {
        console.log("Success share");
        this.resumeGame = true;
        this.checkStatusContinue();
    });

2) Here my error:
 

POST https://m.facebook.com/games/quicksilver/share_score/ 500
ErrorUtils caught an error: "Cannot read property 'message' of null". Subsequent errors won't be logged; see https://fburl.com/debugjs.

Please help with it. Thanks.

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