terminal42 / contao-facebook-albums
Allow the Contao to display Facebook albums.
Installs: 372
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 7
Forks: 0
Open Issues: 1
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.4
- nickdnk/graph-sdk: ^6.0
Requires (Dev)
- contao/manager-plugin: ^2.0
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2024-10-30 01:53:40 UTC
README
An Extension to Contao providing facebook albums as content elements
Obtaining a user access token
The extension should automatically get the necessary tokens to read the data unless your Facebook app is not reviewed and published. In other cases you may want to obtain the access token manually as follows:
- Go to https://developers.facebook.com/tools/explorer, select your desired app, add
pages_read_engagement
permission and clickGet Token > Get User Access Token
to get the short-lived access token. - Go to
https://graph.facebook.com/v5.0/oauth/access_token?grant_type=fb_exchange_token&client_id={app_id}&client_secret={app_secret}&fb_exchange_token={short_lived_token}
and copy the access_token value from the JSON response, this is the long-lived access token. - Use https://developers.facebook.com/tools/debug/accesstoken to verify that the token is valid, doesn't expire
and contains the
pages_read_engagement
scope. - You can then use this token as field value for
User Access Token
in the Facebook album account settings.