pump-io / pump.io

Social server with an ActivityStreams API
http://pump.io/
Apache License 2.0
2.21k stars 333 forks source link

Button on websites to share pages on a pump.io server #771

Open tct opened 10 years ago

tct commented 10 years ago

Hi,

I am interested in writing a JavaScript code for a button to be incorporated in a website (static, PHP, Python or Ruby) that will allow users to click, login to their pump.io server and automatically share that website page on a pump.io server.

Much like the share buttons for StatusNet and Diaspora.

I need some pointers. Can this be done without writing a full-fledged node.js application?

Thanks!

evanp commented 10 years ago

This sounds like a great idea.

evanp commented 10 years ago

Oh, yes: I think you need a server, but it doesn't have to be in node.js.

tct commented 10 years ago

How can I achieve this? Could you please give me some pointers to documentation or code? Thanks!

williamtheaker commented 10 years ago

tct: here is the pump.io documentation https://github.com/e14n/pump.io/blob/master/API.md

Could you use identi.ca or microca.st as your server?

mythsmith commented 10 years ago

This is quite fundamental. Each federated server should require the user name and redirect the user to the correct server for posting. This would cause a partial loss of privacy, as you should communicate to a third party server what you are sharing. Alternatively, the button itself should ask you your name or at least your server and redirect you there for the real posting.