friendica-addons/statusnet/README.md

72 lines
2.8 KiB
Markdown
Raw Permalink Normal View History

GNU Social Connector
2013-05-31 13:23:18 +02:00
===================
Main authors Tobias Diekershoff and Michael Vogel.
With this addon to friendica you can give your users the possibility to post their *public* messages to GNU Social
and to import their timeline of their legacy GNU Social accounts. The messages will be strapped their rich context
and shortened if necessary.
2013-05-31 13:23:18 +02:00
Requirements
------------
Due to the distributed nature of the GNU Social network, each user who wishes to
forward public messages to a GNU Social account has to get the OAuth credentials
2013-05-31 13:23:18 +02:00
for themselves, which makes this addon a little bit more user unfriendly than
the Twitter Addon is. Nothing too geeky though!
2013-05-31 13:23:18 +02:00
The inclusion of a shorturl for the original posting in cases when the message
was longer than the maximal allowed notice length requires it, that you have
PHP5+ and curl on your server.
2013-05-31 13:23:18 +02:00
Where to find
-------------
2013-05-31 13:23:18 +02:00
2013-05-31 15:51:53 +02:00
In the friendica addon git repository /statusnet/, this directory contains all
2013-05-31 13:23:18 +02:00
required PHP files (including the [Twitter OAuth library] [1] by Abraham Williams,
MIT licensed and the [Slinky library] [2] by Beau Lebens, BSD license), a CSS file
for styling of the user configuration and an image to Sign in with GNU Social.
2013-05-31 13:23:18 +02:00
[1]:https://github.com/abraham/twitteroauth
[2]:http://dentedreality.com.au/projects/slinky
Configuration
=============
User Configuration
------------------
2013-05-31 15:51:53 +02:00
When the addon is activated the user has to acquire three things in order to
connect to the GNU Social account of choice.
2013-05-31 13:23:18 +02:00
* the base URL for the GNU Social API, for identi.ca this was https://identi.ca/api/
2013-05-31 13:23:18 +02:00
* OAuth Consumer key & secret
To get the OAuth Consumer key pair the user has to (a) ask her Friendica admin
if a pair already exists or (b) has to register the Friendica server as a
client application on the GNU Social server. This can be done from the account
2013-05-31 13:23:18 +02:00
settings under "Connect -> Connections -> Register an OAuth client application
-> Register a new application".
During the registration of the OAuth client remember the following:
2013-05-31 15:51:53 +02:00
* there is no callback URL
2013-05-31 13:23:18 +02:00
* register a desktop client
* with read & write access
2013-05-31 15:51:53 +02:00
* the Source URL should be the URL of your friendica server
2013-05-31 13:23:18 +02:00
After the required credentials for the application are stored in the
2013-05-31 15:51:53 +02:00
configuration you have to actually connect your friendica account with
GNU Social. To do so follow the Sign in with GNU Social button, allow the access
and copy the security code into the addon configuration. Friendica will then
2013-05-31 13:23:18 +02:00
try to acquire the final OAuth credentials from the API, if successful the
addon settings will allow you to select to post your public messages to your
GNU Social account.
2013-05-31 13:23:18 +02:00
License
=======
The _GNU Social Connector_ is licensed under the [3-clause BSD license][3] see the
2013-05-31 13:23:18 +02:00
LICENSE file in the addons directory.
[3]: http://opensource.org/licenses/BSD-3-Clause