no-mayo / today-i-learned

1 stars 8 forks source link

After posting a learn, a link/button should allow easy sharing to Twitter #3

Closed louisebolden closed 6 years ago

mpettaw2 commented 7 years ago

Hello, I hope you are doing well? I had a question, do you want your entire "data" object to be formatted and sent to twitter or just a single property?

louisebolden commented 7 years ago

Hello!

Good question. I think for this particular issue/feature, we'd like a link/button to appear (after a new learn is successfully added) that suggests a tweet like: _"TIL: [new learn detail] #TIL /cc @no_mayodigital" - tagging us so that we can reply with a :star2:!

Twitter's Web Intents (specifically the Tweet Web Intent) should be fine for this - and I just found a tool that looks useful for generating the correct href for a click-to-tweet link/button: http://tech.cymi.org/tweet-intents

Let us know if you have any further questions about this issue! We created this project specifically to offer 'beginner'-tagged issues for newer developers, mostly ones who might be participating in one of our London-based mentoring sessions that are starting soon - but if you're happy to tackle the issue remotely, we'd be happy to accept your contribution too!

hsoloman83 commented 6 years ago

I'm having a look at this now!