sebsauvage / Shaarli

The personal, minimalist, super-fast, no-database delicious clone.
http://sebsauvage.net/wiki/doku.php?id=php:shaarli
Other
678 stars 390 forks source link

Implement a Twitter/Status.net client #25

Closed sebsauvage closed 11 years ago

sebsauvage commented 11 years ago

... so that what you post on Shaarli is automatically posted on Twitter/Status.net.

ghost commented 11 years ago

In same way, i't possible to implements proprietary tag (berk) for twitter and open graph (facebook) https://github.com/h5bp/html5-boilerplate/blob/v4.1.0/doc/extend.md#social-networks

And add the sidemap.xml too :) https://github.com/h5bp/html5-boilerplate/blob/v4.1.0/doc/extend.md#direct-search-spiders-to-your-sitemap

e2jk commented 11 years ago

I don't know about Twitter, but for Status.net this is already doable, by adding your Shaarli's RSS feed to your Status.net account. I have that set up on my identi.ca account: http://identi.ca/e2jk

The only bad thing is that I don't think anyone understands what is going on: the post shows the title of your Shaarli post, but you have to click on the dent's date/time (...) to get access to the link. This is not intuitive at all.

I had thought about creating a patch that would generate a second RSS feed, that would put the url as part of the text. Due to length restrictions a shortened url should probably be used. The RSS feed would have a parameter that indicates how long the text can be, to handle instances limited to 140 characters, or 500 and + characters. That way Shaarli would be able to generate text that is adapted to the service that is consuming it's RSS.

sebsauvage commented 11 years ago

Twitter is a pain in the ass: http://sebsauvage.net/wiki/doku.php?id=php:shaarli:doc:twitter And the lib I use (tmhOAuth) sometimes fails silently. :-(

Thanks for the tip about RSS in Status.net. That would be so much better than an API. (Why on earth does not Twitter support this ?)

sebsauvage commented 11 years ago

Pondering the issue, I think that's too much work for a small advantage. I postpone this feature. (I label it "wontfix" for now and close it.)

If you want to do it anyway, there are several services capable of taking a RSS feed and publish it to Twitter: