I'm doing the sharing in my instant game. I'm firing next req from the game:
FBInstant.shareAsync(
{
intent: 'REQUEST',
image: 'image-encoded-here',
text: 'Edgar just played BASH for 9 points!',
data: { myReplayData: 'message sent' },
}
).then( function()
{
console.log("sharing is done");
})
.catch( function(err)
{
console.log('failed to share: ' + err.code + " :: " + err.message);
});
but I'm receiving 500-error:
https://www.facebook.com/games/quicksilver/share_score/?dpr=2 500 () failed to share: NETWORK_FAILURE ::
=====================================
in My particulare case problems was with encoded image. As i remember, image to share should include all the encoded image stuff with "data:image/jpeg;base64,/" in front.