Плагин фейсбук для wordpress. Добавление нескольких вкладок. Отправка сообщений со Страницы

На iOS - iPhone, iPod touch 23.02.2019
На iOS - iPhone, iPod touch

Эта статья на тему — социальные плагины для Фейсбука. Почему я затронула эту тематику? Все дело в том, что сеть Facebook постоянно обновляется. Это происходит для того, чтобы нам было легче Если не отслеживать эти обновления, то эффективность нашего продвижение падает, так как мы не используем эту социальную сеть на 100%.

Статья предназначена для тех, у кого есть блог на Word Press. Для нас очень важно, чтобы наши интернет ресурсы были между собой переплетены. Чтобы между ними постоянно существовала связь. А устанавливая социальные плагины для Фейсбука на наш сайт или блог, мы соединяем их с нашей страницей в этой социальной сети.

Сегодня речь пойдет именно о плагинах Фейсбука. Переходим на свою бизнес страницу и в самом низу правой колонки находим ссылки — «Конфиденциальность», «Условия пользования», «Реклама», «Выбор рекламы», «Файлы «cookie», «Еще». Кликаем на последнюю ссылку и выбираем «Разработчикам».

Как получить код

Перейдя на сайт разработчиков этой социальной сети, нажимаем на «Продукты», а затем в разделе «Продвижение и вовлечение» находим ссылку «Социальные плагины Facebook». Вот они то нам и нужны.

Переходим по этой ссылке и прокручиваем страницу в самый низ. Здесь у нас имеется возможность выбрать вид плагина. Будь-то кнопки, комментарии, цитаты, видео и т.д. Жмите на любую, все-равно попадете туда, куда стремитесь — на страницу «Документы», подраздел «Социальные плагины».

Seamlessly add a Facebook Page to your WordPress website with the Facebook Page Plugin! Trusted by more than 30,000 WordPress websites worldwide, the Facebook Page Plugin is the simplest way to add a Facebook page to your website.

You can add your Facebook page to any widget area with the custom Facebook Page Plugin widget, with live preview available in the Customizer.

The plugin can be used to add your Facebook page to any post, page or text widget by using the shortcode to display the plugin wherever you like, as often as you like.

Other features include:

With more than 30,000 installs and nearly 50 5-star rating, the Facebook Page Plugin is one of the most popular social media plugins for WordPress.

Plugin Settings

The Facebook Page Plugin uses a shortcode to insert the page feed. You set your settings within the shortcode.
Available settings:

Href (URL path that comes after facebook.com/) width (number, in pixels, between 180 and 500, default 340) height (number, in pixels, minimum 70, default 500) cover (true/false, show page cover photo, default true) facepile (true/false, show facepile, default true) tabs (any combination of , default timeline) cta (true/false, hide custom call to action if applicable, default false) small (true/false, display small header (must be true for height to be lower than 130px), default false) adapt (true/false, force plugin to be responsive, default true) language (languageCode_countryCode eg: en_US, language of the plugin, default site language)

    Deprecated Settings *

    posts (true/false) — posts has been replaced by tabs as of 1.4.0. There is a fallback in place to convert it to tabs

Example:
This will display a Facebook page feed that loads in the page facebook.com/facebook that is 300px wide but adapts to it’s container, 500px high, displaying the page’s cover photo, facepile and recent posts in the same language as the site. See the screenshots tab for a demonstration of how it will appear

Filter Reference

facebook_page_plugin_dashboard_widget_capability

Changes who can see the shortcode generator on the dashboard. Default: edit_posts

Facebook_page_plugin_app_id

Changes the Facebook App ID.

Скриншоты

Часто задаваемые вопросы

What happened to «Show Posts»?

The latest version of the API has removed show posts and replaced it with tabs which is more dynamic. To show just the posts, your tabs value should be «timeline». To hide the posts, tabs should be empty (shortcode) or select «none» (widget). If you’re using the shortcode, remember that by default it shows the timeline so you must set it as either an empty or false value to hide posts ie tabs="" or tabs="false" . If the posts option is already being used it will be converted to tabs.

What languages are available?

As of version 1.2.0, the plugin is available in all languages provided by Facebook (full list availabe ). By default it uses the same language as the site, but alternatively you can specify the language in the shortcode. The dashboard widget is currently only available in English but is multilingual ready.

If the URL for your page is http://facebook.com/ABC123 then when you use the shortcode don’t include the domain, instead use like so:
Also, if your page has only just been created it may take some time for the API to load the page. Just be patient

What versions of WordPress will this plugin work on?

Shortcodes were introduced in WordPress 2.5, so theorectially it should work on all sites that are at least 2.5, however it has only been tested on versions 4.0 and up, and no guarantee will be made concerning earlier versions

I can only see a link, the plugin won’t load

By default the plugin will display a link to your page while the page plugin loads. If the page plugin doesn’t load, this could happen for a number of reasons. Your connection could be very slow, you could have JavaScript disabled, you could have an ad blocker or similar browser extension blocking the plugin or there could be an error in the information you have provided in the widget or shortcode.
Additionally, if your Facebook page has audience restrictions for age and/or location, the plugin will not display. If you want the plugin to display, disable the audience restrictions in your page settings on Facebook.

I can’t get the Facepile to work!

Chances are your plugin isn’t tall enough to display the facepile properly. The facepile requires the plugin to have a minimum height of 214 pixels, or 154 pixel if using the small header.

Отзывы

Участники и разработчики

«Responsive Facebook Page Plugin» - проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

Журнал изменений

1.6.3 — 01/04/18

  • Improved string translations
  • Updated Graph API from v2.5 to v2.12
  • Fail gracefully when SimpleXML isn’t installed
  • Fixed changelog link
  • Updated the plugin display name to avoid potential trademark issues

1.6.2 — 18/11/17

  • Changes minimum WordPress version to 4.6 for translations
  • Tested for WordPress 4.9 ‘Tipton’
  • Fixed bug with setting the language in the shortcode generator
  • Increased accuracy of URL detection in the widget form

1.6.1 — 11/04/17

  • Adding text domain header
  • Adding implementation indicator for debugging

1.6.0 — 02/04/17

  • New landing page with FAQs to help with onboarding of new users
  • Removal of the admin notice review nag
  • Localisation of SDK
  • Added events option to the widget and shortcode generator
  • Changed tabs setting to checkboxes instead of a dropdown

1.5.3 — 25/01/16

  • Fixed bug where share button would return App Not Setup error

1.5.2 — 01/12/15

  • Fixed bug where plugin would rerender during scroll on mobile devices

1.5.1 — 29/11/15

  • Fixed bug where plugin wouldn’t rerender
  • Fixed bug with languages XML file not loading on installs where the admin is not wp-admin

1.5.0 — 23/11/15

  • Migrated to object oriented
  • Fixed languages XML file being blocked by iThemes Security
  • Fixed HTML issue with dashboard widget
  • Added script that makes the plugin fully responsive

1.4.2 — 23/09/15

1.3.3 — 11/08/15

  • Direct access security update
  • Verifying compatibility with WP 4.2.4 and WP 4.3
  • Fixing bug where some options in the widget would revert to the default instead of false

1.3.2 — 25/07/15

  • WP 4.2.3 Compatibility
  • Upgrading to Graph API 2.4

1.3.0 — 02/07/15

  • Added hide-cta, small-header and adapt-container-width settings
  • Adjusted min height and width

1.2.5 — 06/06/15

  • Fixed close icon on notice

1.2.4 — 05/06/15

  • Fixed readme

1.2.3 — 04/06/15

  • Fixed bug where the admin dashboard and widgets pages would break if the WordPress installation is running on localhost and there is no internet connection

1.2.2 — 27/05/15

  • Fixed posts option for widget

1.2.1 — 27/05/15

  • Fixed readme bug

1.2.0 — 26/05/15

  • Added multilingual support. Language can be specified in the shortcode, otherwise it is retrievd from the site settings.
  • Added a shortcode generator dashboard widget to allow easier creation of the shortcode
  • Added a custom widget

1.1.1 — 14/05/15

  • Fixed height bug

1.1.0 — 10/05/15

  • Added filter to allow calling of shortcodes in the text widget

Facebook like box, также известный как Facebook fan box, стал практически обязательным элементом для многих сайтов. Не так давно Facebook заменил этот виджет на новый плагин Facebook Page. В сегодняшней статье мы покажем вам как добавить плагин Facebook Page в WordPress.

Примечание: Пользователи, которые уже добавили старый like box или же fan box на свои сайты WordPress, будут автоматически перенесены на новый плагин Page.

Что такое Facebook Page плагин?

Facebook Page плагин — это замена того, что прежде называлось Facebook Like box. Он позволяет вам рекламировать вашу страницу на Facebook на своем сайте. Новый плагин Facebook Page делает то же самое.

Как добавить новый плагин Facebook Page в WordPress

Первым делом вам необходимо перейти на сайт Facebook’s Page Plugin . Там вы найдете опции для настройки внешнего вида вашей «встроенной» страницы Facebook.

Вы можете отобразить фотографию обложки, записи и лица друзей на странице плагина. Как только закончите с настройкой внешнего вида, кликните на кнопку Get Code для продолжения.

Facebook отобразит вам два кусочка кода. Скопируйте первый сниппет кода и вставьте его в свою тему или же дочернюю тему в файл header.php сразу после тега .

Далее, скопируйте второй сниппет кода и вставьте его в то место, где вы хотите вывести like box страницы. Также этот код можно добавить в текстовый виджет в разделе Внешний вид » Виджеты административной панели сайта.

Мы надеемся, что эта статья помогла вам добавить плагин Facebook Page на свой сайт WordPress.

По всем вопросам и отзывам просьба писать в комментарии ниже.

Не забывайте, по возможности, оценивать понравившиеся записи количеством звездочек на ваше усмотрение.



Рекомендуем почитать

Наверх