ScrivitoFacebookWidget
A Scrivito widget that inserts a Facebook stream into a page. You can add a Facebook page by its URL, or a video or a single post by its ID.
Installation
Add this line to your application's Gemfile:
gem 'scrivito_facebook_widget'
Add this line to your application stylesheet manifest:
//= require scrivito_facebook_widget
Facebook App ID
When using this widget, a warning is displayed in the browser console, saying that no app ID is set. This is no problem as long as you are not using private content from Facebook on your web page.
To remove this warning, just set a global JavaScript variable at the top of the page:
var fbAppId = yourAppId
The App ID can be generated using Facebook's developer tools.
Localization
The following code represents the default localization for English. Copy it to your en.yml
and change it if necessary:
en:
scrivito_accordion_widget:
thumbnail:
title: Facbook
description: Add facebook social plugins to the page
details:
type: type
url: Url
width: 'Max Width'
height: 'Height'
hide_cover: Hide Cover
show_facepile: Show Facepile
show_posts: Show Posts
hide_cta: Hide CTA
no_facebook_url: No type or url is present. Insert one in details view.