I have a website where a user can design smartphones. At some point, the user should be able to share the design on Facebook, including the design. I have an object in the same way as the "style" defined as the URI of the canvas data.
Code for custom image sharing:
How can I share it with my image, since it is a data URI.
thanks
UPDATE : Now I have a canvas stored on the server, properly connected. Although, it seems, I canβt edit the "href" link on the Facebook link that is reading the thumbnail.
I tried:
var fblink = document.getElementById ("facebook_share"); fblink.href = "http://example.com/image.png";
and
fblink.setAttribute ("href", "http://example.com/image.png");
No, it seems to work. The "fblink" object is correct, since I can read "rel", etc.
source share