Facebook package
From MoodleDocs
This module uses Facebook connect to allow the following features:
- Users to add associate their Facebook account with their Moodle account
- Users to use their Facebook account to log into Moodle
- Teachers to add a Facebook Live Stream Box as an activity in a course
Requirements:
- A working installation of Moodle 1.9+
- See also http://wiki.developers.facebook.com/index.php/Facebook_Connect for information about Facebook Connect
Installation
- You will need to register your site with Facebook before you can use this module. Go to http://www.facebook.com/developers, add the application if you have not done so already, then create a new Facebook application. Each Connect website is treated as a Facebook application, and so it needs an API key.
- Fill in these fields:
- Application Name: this will be what your users will see when they connect to your site.
- Terms of Service: Select Agree. The Developer Terms of Service govern among other things how you can use the information on your site. Pay particular attention to section G, Facebook Connect.
- Connect URL: This is the root URL of your Moodle site.
- Submit your application, and make note of your API key and Secret.
- Move the contents of the 'auth' directory to your Moodle 'auth' directory.
- Move the contents of the 'user' directory to your Moodle 'user' directory.
- Move the contents of the 'mod' directory to your Moodle 'mod' directory.
- Edit the header.html file in your themes directory and add facebook namespace to the HTML tag
- <html xmlns:fb="http://www.facebook.com/2008/fbml">
- Go to your main Moodle admin page (Site Administration > Notifications)
- Go to (Modules > Activities > Manage Activities) and enable the 'Facebook Live Stream Box' by clicking on the 'eye' icon.
- Enter the Secret and API keys when prompted
- Go to (Modules > Activities > Manage Activities) and enable the 'Facebook Live Stream Box' by clicking on the 'eye' icon.
- Go to (Users > Accounts > User profile fields) and add a new 'Facebook' profile field.
- Give the profile field a Short name ("facebook" suggested), Name ("Facebook" suggested) and click 'Save Changes'
- Go to (Users > Authentication > Manage Authentication) and enable the 'Facebook' module by clicking on the 'eye' icon.
Assuming you don't run into any problems, you should be ready to go.
Future Development & reporting bugs
To report bugs or to request features, visit the |Moodle tracker and create a new issue
When reporting a bug/feature request ensure you select the following settings
- Project: "Non-core contributed modules"
- Issue type: <<You choose>>
- Component/s: "Package: Facebook"
See also
- Using Moodle Facebook Connect forum discussion