Closed TristanBomb closed 4 years ago
Have you tried looking at FB/Twitter/G+/... APIs for this?
I have not yet looked at the APIs for this. Currently, the image is generated via a JS canvas; I think an alternative means would be necessary to make the images shareable, but I could be wrong.
Well, one way to go about this (as suggested in another issue I've seen) is that it could be saved to an image that then can be saved/shared.
Following #7 (fixed by PR #104) this is less of an issue as the image can now be properly shared.
It might be worth looking into the Web Share API (still not widely supported, sadly) for better control of results sharing.
Until that happens, the current solution (using a PNG to display the image rather than a canvas) works pretty well.
It would be nice if it was easier to send scores via Twitter, Facebook, BBCode, or other similar mechanisms, for instance with share buttons. This would probably require changing how the image is generated, though.