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

The ability to create "share on Bluesky"-buttons on websites and blogs #1301

Open
oyvindlh opened this issue Aug 28, 2023 · 14 comments
Open
Labels
feature-request A request for a new feature x:on-the-roadmap We're planning to do this but it may be a bit

Comments

@oyvindlh
Copy link

It would be nice to be able to create a share-button by refering to a receiver-script on bsky.app. Which then opens opp a new BlueSky-post with content ( + og-data ) from the url with the share-button.

For usage on blogs, newspapers and other sites.

@oyvindlh oyvindlh added the feature-request A request for a new feature label Aug 28, 2023
@pfrazee pfrazee added the x:on-the-roadmap We're planning to do this but it may be a bit label Aug 28, 2023
@opengovnz
Copy link

Is there an update for this feature request? I'd dearly love to add a BlueSky share button to a few websites I'm the admin of.

@haileyok
Copy link
Contributor

@opengovnz You can try using https://bsky.app/intent/compose?text=Hello+https://google.com

@opengovnz
Copy link

Thanks @haileyok - I'll try that. Do you know if BlueSky has any PNG icon files I could add to the websites to put the link behind? The one on the web version of the app is an SVG which is less easy for me to work with.

@haileyok
Copy link
Contributor

I think @emilyliu7321 knows where these are at.

@opengovnz
Copy link

Hmm. I'm an amateur tinkerer, and while I've been able to make Bluesky icon, Wordpress manages the location of their placement on my sites and I can only choose the icons and share functionality from a drop down list. I think if Bluesky would like more media companies and journalists sharing their writing to the site/app, it'd be good if there were an official icon and that it was evangelised to Wordpress theme creators/Wordpress.org
Screenshot 2024-04-12 at 3 13 56 PM
Screenshot 2024-04-12 at 3 14 06 PM

@haileyok
Copy link
Contributor

@opengovnz the icon is in FontAwesome now, should be able to use that I think? https://fontawesome.com/icons/bluesky?f=brands&s=solid

@opengovnz
Copy link

Many thanks.

@wesleyboar
Copy link

I tried https://bsky.app/intent/compose?text= with a URL. It did put a linked URL in the post prompt, but did not show anything from the page, not even after posting.

@martymi
Copy link

martymi commented Oct 30, 2024

Dropping by to echo @wesleyboar -- This scheme does work, but does not seem to trigger the thumbnail automatically. It requires hitting space to get a thumbnail. Whereas if you if you create a new post and paste the link the thumbnail generates without having to press space.

It would be great to have support in this scheme for the URL as well as title or other text description.

@wesleyboar
Copy link

wesleyboar commented Oct 30, 2024

Thanks @martymi!

I tested. I found more than a single space was necessary; options that worked for me: (A) press space twice, (B) press space, then backspace, then space. Maybe it's a timing thing. I tested in Safari v17 and Brave (Chromium).

For BlueSky,

I could let website staff (whom I can instruct) share articles this way, but [I would rather not let] users. Do the following videos illustrate the status well enough to inspire investigation?

test.post.via.URL.then.add.space.-.safari.mov
test.post.via.URL.then.add.space.-.brave.mov

@martymi
Copy link

martymi commented Oct 30, 2024

@wesleyboar you are correct, it does take generally two keystrokes (type space + type character in my recent test). Thanks for the videos to clarify.

I have implemented this now on a production site. I must admit having a "share on bluesky" button feels GREAT, even though the functionality is not entirely built out yet. It will help with growth and legitimacy of the platform. Here's hoping we can get BS devs to escalate this when it becomes practical to do so.

@martymi
Copy link

martymi commented Dec 10, 2024

In very recent testing it looks like after some recent updates the shared URL now begins generating a thumbnail without further user action like hitting the spacebar :)

@wesleyboar
Copy link

👍 Thanks @martymi. Confirmed, image is loaded without extra action.

I don't know all the og-data expected but loading Page Title would be a nice next step.

bluesky.share.loads.site.image.now.mov

@martymi
Copy link

martymi commented Dec 10, 2024

Agreed, and/or some sort of content text string support for the share function. ie:

"Highlighted text, or Page Title, or something else." https://example.link.here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A request for a new feature x:on-the-roadmap We're planning to do this but it may be a bit
Projects
None yet
Development

No branches or pull requests

6 participants