So i've been trying to share a link with an image that is created from a canvas.
Anyone know if this is possible since ive tried all of the suggestions from other posts.
Should also mention that the image created is randomly generated so having them on a server is not practical.
I've tried the code below, however it does not work.
var canvas = document.getElementById("mycanvas");
var img = canvas.toDataURL("image/png");
FB.ui({
method: 'share_open_graph',
action_type: 'og.shares',
action_properties: JSON.stringify({
object: {
'og:url': 'webaddress',
'og:title': 'title',
'og:description': 'desc',
'og:image': img,
'og:image:width': 960,
'og:image:height': 642,
}
})
}