Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Share button in Post.svelte to share a post to twitter #12

Open
itsfarseen opened this issue May 8, 2021 · 7 comments
Open

Share button in Post.svelte to share a post to twitter #12

itsfarseen opened this issue May 8, 2021 · 7 comments
Labels
help wanted Extra attention is needed sveltejs This issue is related to the frontend code.

Comments

@itsfarseen
Copy link
Owner

No description provided.

@itsfarseen itsfarseen added help wanted Extra attention is needed sveltejs This issue is related to the frontend code. labels May 8, 2021
@anandubajith
Copy link
Contributor

We could use https://developer.twitter.com/en/docs/twitter-for-websites/tweet-button/guides/web-intent
What should be the format of the tweet?

@sudormrfbin
Copy link
Contributor

Share buttons for Instagram and WhatsApp would also be a good addition.

@itsfarseen
Copy link
Owner Author

<thing> available at <location>
<more info>
breathe-india.com/post/<post-id>

<location> should be a concatenation of state, district, city, spot fields. But there are some issues with that.
See #8

We should skip empty fields among those location subfields.
Currently, as I had put <input required> for all the fields, the current data contains - or N/A to denote unavailable fields.
Consider them too as empty.
Another issue is some of the fields are put as same, for example when both District and City are "Bangalore" we should concatenate it only once.
If you do this, it would be nice if you could port it over to PostRow.svelte to fix #8

@itsfarseen
Copy link
Owner Author

as @gokulsoumya suggested it would be nice if we can add insta and whatsapp too, but if that is not possible a copy to clipboard button would do.

@anandubajith
Copy link
Contributor

anandubajith commented May 8, 2021

@sudormrfbin
Copy link
Contributor

sudormrfbin commented May 8, 2021

I couldn't find anything relating to sharing directly to Instagram

It seems Instagram doesn't allow sharing from external websites to it's app (makes sense considering it's mainly for sharing photos and videos). IIRC it only allows users with more than 10K followers to directly post a link to their stories (that too from within the app). Forgot about it earlier :P

@itsfarseen
Copy link
Owner Author

the clipboard partial support means, if I understand correctly, that we can only copy data to clipboard and not paste from clipboard. Which makes sense because then random websites will be able to monitor our clipboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed sveltejs This issue is related to the frontend code.
Projects
None yet
Development

No branches or pull requests

3 participants