8values / 8values.github.io

The 8values political quiz
MIT License
989 stars 411 forks source link

Social media integration #10

Closed TristanBomb closed 4 years ago

TristanBomb commented 7 years ago

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.

Berkmann18 commented 6 years ago

Have you tried looking at FB/Twitter/G+/... APIs for this?

TristanBomb commented 6 years ago

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.

Berkmann18 commented 6 years ago

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.

Genora51 commented 5 years ago

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.