Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
This commit is contained in:
commit
ffa80c50ff
|
@ -1,6 +1,9 @@
|
||||||
This plugin allows you to use Facebook Connect with StatusNet, provides a
|
Facebook Plugin
|
||||||
Facebook application for your users, and allows them to update their
|
===============
|
||||||
Facebook statuses from StatusNet.
|
|
||||||
|
This plugin allows you to use Facebook Connect with StatusNet, provides
|
||||||
|
a Facebook canvas application for your users, and allows them to update
|
||||||
|
their Facebook statuses from StatusNet.
|
||||||
|
|
||||||
Facebook Connect
|
Facebook Connect
|
||||||
----------------
|
----------------
|
||||||
|
@ -15,12 +18,12 @@ Facebook credentials. With Facebook Connect, your users can:
|
||||||
Built-in Facebook Application
|
Built-in Facebook Application
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
The plugin also installs a StatusNet Facebook application that allows your
|
The plugin also installs a StatusNet Facebook canvas application that
|
||||||
users to automatically update their Facebook statuses with their latest
|
allows your users to automatically update their Facebook status with
|
||||||
notices, invite their friends to use the app (and thus your site), view
|
their latest notices, invite their friends to use the app (and thus your
|
||||||
their notice timelines, and post notices -- all from within Facebook. The
|
site), view their notice timelines and post notices -- all from within
|
||||||
application is built into the StatusNet Facebook plugin and runs on your
|
Facebook. The application is built into the StatusNet Facebook plugin
|
||||||
host.
|
and runs on your host.
|
||||||
|
|
||||||
Quick setup instructions*
|
Quick setup instructions*
|
||||||
-------------------------
|
-------------------------
|
||||||
|
@ -29,13 +32,9 @@ Install the Facebook Developer application on Facebook:
|
||||||
|
|
||||||
http://www.facebook.com/developers/
|
http://www.facebook.com/developers/
|
||||||
|
|
||||||
Use it to create a new application and generate an API key and secret. Add a
|
Use it to create a new application and generate an API key and secret.
|
||||||
Facebook app section of your config.php and copy in the key and secret,
|
You will need the key and secret so cut-n-paste them into your text
|
||||||
e.g.:
|
editor or write them down.
|
||||||
|
|
||||||
// Config section for the built-in Facebook application
|
|
||||||
$config['facebook']['apikey'] = 'APIKEY';
|
|
||||||
$config['facebook']['secret'] = 'SECRET';
|
|
||||||
|
|
||||||
In Facebook's application editor, specify the following URLs for your app:
|
In Facebook's application editor, specify the following URLs for your app:
|
||||||
|
|
||||||
|
@ -67,11 +66,36 @@ can be left with default values.
|
||||||
http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site
|
http://wiki.developers.facebook.com/index.php/Connect/Setting_Up_Your_Site
|
||||||
http://wiki.developers.facebook.com/index.php/Creating_your_first_application
|
http://wiki.developers.facebook.com/index.php/Creating_your_first_application
|
||||||
|
|
||||||
Finally you must activate the plugin by adding the following line to your
|
Finally you must activate the plugin by adding it in your config.php
|
||||||
config.php:
|
(this is where you'll need the API key and secret generated earlier):
|
||||||
|
|
||||||
|
addPlugin(
|
||||||
|
'Facebook',
|
||||||
|
array(
|
||||||
|
'apikey' => 'YOUR_APIKEY',
|
||||||
|
'secret' => 'YOUR_SECRET'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
Administration Panel
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
As of StatusNet 0.9.0 you can alternatively specify the key and secret
|
||||||
|
via a Facebook administration panel from within StatusNet, in which case
|
||||||
|
you can just add:
|
||||||
|
|
||||||
addPlugin('Facebook');
|
addPlugin('Facebook');
|
||||||
|
|
||||||
|
to activate the plugin.
|
||||||
|
|
||||||
|
NOTE: To enable the administration panel you'll need to add it to the
|
||||||
|
list of active administration panels, e.g.:
|
||||||
|
|
||||||
|
$config['admin']['panels'][] = 'facebook';
|
||||||
|
|
||||||
|
and of course you'll need a user with the administrative role to access
|
||||||
|
it and input the API key and secret (see: scripts/userrole.php).
|
||||||
|
|
||||||
Testing It Out
|
Testing It Out
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
@ -81,11 +105,11 @@ disconnect* to their Facebook accounts from it.
|
||||||
|
|
||||||
To try out the plugin, fire up your browser and connect to:
|
To try out the plugin, fire up your browser and connect to:
|
||||||
|
|
||||||
http://SITE/PATH_TO_STATUSNET/main/facebooklogin
|
http://example.net/mublog/main/facebooklogin
|
||||||
|
|
||||||
or, if you do not have fancy URLs turned on:
|
or, if you do not have fancy URLs turned on:
|
||||||
|
|
||||||
http://SITE/PATH_TO_STATUSNET/index.php/main/facebooklogin
|
http://example.net/mublog/index.php/main/facebooklogin
|
||||||
|
|
||||||
You should see a page with a blue button that says: "Connect with Facebook"
|
You should see a page with a blue button that says: "Connect with Facebook"
|
||||||
and you should be able to login or register.
|
and you should be able to login or register.
|
||||||
|
@ -109,16 +133,20 @@ StatusNet.
|
||||||
Offline Queue Handling
|
Offline Queue Handling
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
For larger sites needing better performance it's possible to enable queuing
|
For larger sites needing better performance it's possible to enable
|
||||||
and have users' notices posted to Facebook via a separate "offline"
|
queuing and have users' notices posted to Facebook via a separate
|
||||||
FacebookQueueHandler (facebookqueuhandler.php in the Facebook plugin
|
"offline" process -- FacebookQueueHandler (facebookqueuhandler.php in
|
||||||
directory), which will be started by the plugin along with their other
|
the Facebook plugin directory). It will run automatically if you have
|
||||||
daemons when you run scripts/startdaemons.sh. See the StatusNet README for
|
enabled StatusNet's offline queueing subsystem. See the "Queues and
|
||||||
more about queuing and daemons.
|
daemons" section in the StatusNet README for more about queuing.
|
||||||
|
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
----
|
----
|
||||||
|
|
||||||
|
- Make Facebook Connect work for authentication for multi-site setups
|
||||||
|
(e.g.: *.status.net)
|
||||||
|
- Posting to Facebook user streams using only Facebook Connect
|
||||||
- Invite Facebook friends to use your StatusNet installation via Facebook
|
- Invite Facebook friends to use your StatusNet installation via Facebook
|
||||||
Connect
|
Connect
|
||||||
- Auto-subscribe Facebook friends already using StatusNet
|
- Auto-subscribe Facebook friends already using StatusNet
|
||||||
|
@ -126,4 +154,4 @@ TODO
|
||||||
- Allow users to update their Facebook statuses once they have authenticated
|
- Allow users to update their Facebook statuses once they have authenticated
|
||||||
with Facebook Connect (no need for them to use the Facebook app if they
|
with Facebook Connect (no need for them to use the Facebook app if they
|
||||||
don't want to).
|
don't want to).
|
||||||
- Re-design the whole thing to support multiple instances of StatusNet
|
- Import a user's Facebook updates into StatusNet
|
||||||
|
|
Loading…
Reference in New Issue
Block a user