內容簡介
WPSwlr 是一個 WordPress 的 Facebook 整合外掛,它允許使用者將 Facebook 文章加載到他們的網頁上。
如果您定期將文章新增到您的 Facebook 頁面(例如餐廳的每日菜單),並且您希望在網頁上也有實際的訊息,而不必手動創建文章,那麼這將是很有用的功能。
雖然有多個類似的外掛,但我們決定創建自己的外掛,因為這些外掛並不能像 WordPress 文章一樣載入 Facebook 文章,而通常使用 shortcode。WPSwlr 可以將文章載入,就像您直接在 WordPress 中創建它們一樣,而且可以完美地符合您的頁面設計,而不需要進行任何外觀自訂。
主要特點
將 Facebook 文章作為 WordPress 文章載入。這意味著它們可以像直接在 WordPress 中創建的文章一樣在頁面的任何位置使用。
您可以排除不需要載入的 Facebook 文章。
為載入的文章分配所選的分類。
編輯文章模板以更改版面設計和外觀。
工作原理
文章每天兩次使用 cron 作業從 Facebook 中拉取。如有需要,您可以手動運行載入過程。
對於每篇 Facebook 文章,都會創建一篇新的 WordPress 文章。
如果文章有多個圖像,則它會作為經典 WordPress 相簿創建 - 它與不同的 LightBox 外掛一起使用。
從 Facebook 載入的圖像不會被下載和存儲在本地,而僅使用指向 Facebook 轉發網絡的連結。
要求
具有管理員權限的 Facebook 頁面 - 您需要成為要使用的頁面的管理員。
需要 Facebook 存取權杖以從 Facebook 獲取數據。權杖必須允許 pages_read_engagement 和 pages_read_user_content 權限。
如果您不知道如何創建存取權杖,您可以參照我們的步驟指南。
外掛標籤
開發者團隊
原文外掛簡介
WPSwlr is a WordPress plugin for Facebook integration, It allows users to load posts from Facebook to their webpage.
This is useful if you add posts to your Facebook page regularly (like a daily menu in restaurants) and you want to have
actual information also on your webpage without having to create posts manually.
There are multiple similar plugins, but we decided to create our own because none of them are able to load posts as
WordPress posts but usually work with a shortcode. WPSwlr loads posts as if you create them directly in WordPress and
perfectly fits your page design without any appearance customization.
Key features
Loads posts from Facebook as a WordPress posts. It means that they can be used anywhere at the page like posts created
directly in the WordPress.
You can exclude Facebook posts from being loaded.
Assigns selected category to loaded posts.
Edit post templates to change layout and appearance.
How it works
Posts are pulled from the Facebook two times per day with a cron job. You can run the load process manually if you
need.
For each Facebook post, a new WordPress post is created.
If a post has multiple images, it is created as a classic WordPress gallery – it works with different LightBox
plugins.
Images from Facebook are not downloaded and stored locally but only link to the Facebook’s CDN is used on the front
page.
Requirements
Facebook Page with administrator rights – you need to be the administrator of the Page you want to use.
Facebook Access Token is required to get data from Facebook. Token has to have allowed pages_read_engagement and
pages_read_user_content permissions.
If you don’t know how to create Access Token, you can follow
our step-by-step guide
