Module Facebook
The Facebook module in Tiki enables Facebook integration by providing Facebook login support and displaying a user’s feed directly within a module.
Parameters
Shows the Wall of a user or Facebook PageRequired parameters are in
bold.Go to the source code
| Parameters | Accepted Values | Description | Default | Since |
|---|---|---|---|---|
user |
Tiki user to show Facebook wall of. | |||
pageid |
Facebook Page ID (optional, to display a Facebook Page instead of user feed) | |||
showuser |
Show username in timeline. y|n | n |
See https://sourceforge.net/p/tikiwiki/code/42496
Related:
Configuration
1.1.1. Creating the Facebook Application
Go to https://developers.facebook.com/ and log in with your Facebook account. If this is your first application, you may need to create a Facebook developer account.
- Click on My Apps in the top right menu, then Create App;
- Give your application a name and enter your contact email address then click Next;
- In Use cases, select "Authenticate and request data from users with Facebook Login" then click Next.
- Click Create App.
Once the application is created, you'll access the application dashboard. In the dashboard, find the Add Products to Your App section and click Set Up next to Facebook Login. The product will be added to your application.
- App ID: a 15-16 digit number
- App Secret: click "Show" to reveal it (keep it secret!)
⚠️ Important: Keep this information secure. The App Secret must never be shared publicly.
1.1.2. Configuration in Tiki
- Log in to Tiki as an administrator and go to Administration > Features (Admin > Features). Enable the "Social Networks" feature and click "Apply".
- Go to Administration(tikiadmin.php) > Users & Community > Social Networks . You'll see several tabs. Click on the "General" tab. In the "Social networks selected for configuration" section, check "Facebook" in the list and click "Apply".
- Click on the "Settings" tab and find the "Facebook" section. Click the "More/less..." button to expand the options. Fill in the following fields:
Application ID: Enter the App ID you copied from Facebook Developers (e.g., `1234567890123456`).
Application secret: Enter the App Secret you copied from Facebook Developers (e.g., `abcdef1234567890abcdef1234567890`).
- Check "Facebook login allowed?" and "Facebook auto-create user?" which will help once we connect with facebook to create user that will be used in module parameter value. This is required.
- Click "Apply".
- Finally log out your Tiki, then at the tiki-login.php, you should see "Login via Facebook" button, login in and the user for e.g. "Face_3343798305779116" will be auto create, the one will use in the module...
Example Usage
This code:
{module module="facebook" user="Face_3343798305779116"}
would produce: