aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Connectors.md
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-17 17:40:00 -0700
committerFriendika <info@friendika.com>2011-05-17 17:40:00 -0700
commit8fa9ca520badd6ae757bbafa647020ed50a288c3 (patch)
tree444cc44bfdde7e5e197cb41dc82bc39b1451c104 /doc/Connectors.md
parent8fa6049b32eeae5656ccc532744499d412cd42df (diff)
downloadvolse-hubzilla-8fa9ca520badd6ae757bbafa647020ed50a288c3.tar.gz
volse-hubzilla-8fa9ca520badd6ae757bbafa647020ed50a288c3.tar.bz2
volse-hubzilla-8fa9ca520badd6ae757bbafa647020ed50a288c3.zip
"show all n comments" comes back after toggled and ajax updated, plus connector doc improvements
Diffstat (limited to 'doc/Connectors.md')
-rw-r--r--doc/Connectors.md92
1 files changed, 56 insertions, 36 deletions
diff --git a/doc/Connectors.md b/doc/Connectors.md
index de5e786f8..f1febb09b 100644
--- a/doc/Connectors.md
+++ b/doc/Connectors.md
@@ -1,8 +1,41 @@
-Friendika uses plugins to provide connectivity to some networks, such as Facebook and Twitter. There is also a plugin to post through to an existing account on a Status.Net service. You do not require this to communicate with Status.Net members from Friendika - only if you wish to post to an already existing account.
+Installing Connectors (Facebook/Twitter/StatusNet)
+==================================================
+
+* [Home](help)
+
+
+Friendika uses plugins to provide connectivity to some networks, such as Facebook and Twitter.
+
+There is also a plugin to post through to an existing account on a Status.Net service. You do not require this to communicate with Status.Net members from Friendika - only if you wish to post to an already existing account.
All three of these plugins require an account on the target network. In addition you (or typically the server administrator) will need to obtain an API key to provide authenticated access to your Friendika server.
-The details of configuring each service follows (this information comes directly from the plugin source files):
+**Site Configuration**
+
+Plugins must be installed by the site administrator before they can be use. This is accomplished through the site
+configuration file ".htconfig.php".
+
+The configuration directive looks like:
+
+```
+$a->config['system']['addon'] = ' ... list of plugins separated by commas ... ';
+```
+
+Example:
+To install all of the connector addons in addition to the default Javascript photo uploader this line would look like:
+
+```
+$a->config['system']['addon'] = 'js_upload,facebook,twitter,statusnet';
+```
+
+You may also add other plugins/addons as your needs require.
+
+
+Each of the connectors also requires an "API key" from the service you wish to connect with. This is also installed in the
+configuration file. The method for obtaining these keys varies greatly - but almost always requires an existing account on the target service. Once installed, these API keys can usually be shared by all site members.
+
+
+The details of configuring each service follows (much of this information comes directly from the plugin source files):
**Twitter Plugin for Friendika**
@@ -15,27 +48,20 @@ Configuration:
To use this plugin you need a OAuth Consumer key pair (key & secret)
you can get it from Twitter at https://twitter.com/apps
-Register your Friendika site as "Client" application with "Read & Write" access
-we do not need "Twitter as login". When you've registered the app you get the
+Register your Friendika site as "Client" application with "Read & Write" access.
+We do not need "Twitter as login". When you've registered the app you get the
OAuth Consumer key and secret pair for your application/site.
Add this key pair to your global .htconfig.php
+
```
$a->config['twitter']['consumerkey'] = 'your consumer_key here';
$a->config['twitter']['consumersecret'] = 'your consumer_secret here';
```
-To activate the plugin itself add it to the
-
-
-```
-$a->config['system']['addon']
-```
-setting. After this, your user can configure their Twitter account settings
+After this, your user can configure their Twitter account settings
from "Settings -> Plugin Settings".
-Requirements: PHP5, curl [Slinky library]
-
Documentation: http://diekershoff.homeunix.net/redmine/wiki/friendikaplugin/Twitter_Plugin
@@ -46,33 +72,31 @@ Documentation: http://diekershoff.homeunix.net/redmine/wiki/friendikaplugin/Twit
* License:3-clause BSD license (same as Friendika)
-* Configuration:
-
-Global Configuration
-To activate this addon add statusnet to the list of active addons in your .htconfig.php file $a->config['system']['addon'] = "statusnet, ...".
-User Configuration
+Configuration
-When the addon is activated the user has to aquire three things in order to connect to the StatusNet account of choice.
+When the addon is activated the user has to aquire the following in order to connect to the StatusNet account of choice.
-the base URL for the StatusNet API, for identi.ca this is https://identi.ca/api/
+* The base URL for the StatusNet API, for identi.ca this is https://identi.ca/api/
+* OAuth Consumer key & secret
+To get the OAuth Consumer key pair the user has to
-* OAuth Consumer key & secret
+(a) ask her Friendika admin if a pair already exists or
+(b) has to register the Friendika server as a client application on the StatusNet server.
-To get the OAuth Consumer key pair the user has to (a) ask her Friendika admin if a pair already exists or (b) has to register the Friendika server as a client application on the StatusNet server. This can be done from the account settings under "Connect -> Connections -> Register an OAuth client application -> Register new application".
+This can be done from the account settings under "Settings -> Connections -> Register an OAuth client application -> Register new application".
During the registration of the OAuth client remember the following:
+* Application names must be unique on the StatusNet site, so we recommend a Name of 'friendika-nnnn', replace 'nnnn' with a random number or your website name.
* there is no callback url
* register a desktop client
* with read & write access
* the Source URL should be the URL of your Friendika server
-After the required credentials for the application are stored in the configuration you have to actually connect your Friendika account with StatusNet. To do so follow the Sign in with StatusNet button, allow the access and copy the security code into the addon configuration. Friendika will then 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 StatusNet account (have a look behind the little lock symbol).
+After the required credentials for the application are stored in the configuration you have to actually connect your Friendika account with StatusNet. This is done from the Settings -> Plugin Settings page. Follow the Sign in with StatusNet button, allow access and then copy the security code into the box provided. Friendika will then try to acquire the final OAuth credentials from the API.
-To activate the plugin itself add it to the $a->config['system']['addon']
-setting. After this, your user can configure their Status.Net account settings
-from "Settings -> Plugin Settings".
+If successful the addon settings will allow you to select to post your public messages to your StatusNet account (have a look behind the little lock symbol beneath the status "editor" on your Home or Network pages).
Documentation: http://diekershoff.homeunix.net/redmine/wiki/friendikaplugin/StatusNet_Plugin
@@ -82,6 +106,7 @@ Documentation: http://diekershoff.homeunix.net/redmine/wiki/friendikaplugin/Stat
* register an API key for your site from developer.facebook.com
+This requires a Facebook account, and may require additional authentication in the form of credit card or mobile phone verification.
a. We'd be very happy if you include "Friendika" in the application name
to increase name recognition. The Friendika icons are also present
@@ -101,28 +126,23 @@ c. Set the following values in your .htconfig.php file
$a->config['facebook']['appid'] = 'xxxxxxxxxxx';
$a->config['facebook']['appsecret'] = 'xxxxxxxxxxxxxxx';
```
-Replace with the settings Facebook gives you.
-2. Enable the facebook plugin by including it in .htconfig.php - e.g.
-
-```
-$a->config['system']['addon'] = 'plugin1,plugin2,facebook';
-```
+Replace with the settings Facebook gives you.
-3. Visit the Facebook Settings section of the "Settings->Plugin Settings" page.
+Visit the Facebook Settings section of the "Settings->Plugin Settings" page.
and click 'Install Facebook Connector'.
-4. This will ask you to login to Facebook and grant permission to the
+This will ask you to login to Facebook and grant permission to the
plugin to do its stuff. Allow it to do so.
-5. You're done. To turn it off visit the Plugin Settings page again and
+You're done. To turn it off visit the Plugin Settings page again and
'Remove Facebook posting'.
Videos and embeds will not be posted if there is no other content. Links
and images will be converted to a format suitable for the Facebook API and
long posts truncated - with a link to view the full post.
-Facebook contacts will not be able to view private photos, as they are not able to
+Facebook contacts will also not be able to view "private" photos, as they are not able to
authenticate to your site to establish identity. We will address this
in a future release.