开发者 | poxtron |
---|---|
更新时间 | 2024年4月4日 04:53 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[embedfb url]
shortcode instead and pass on some parameters to change each embed examples.
You can also use the built-in WordPress [embed]
shortcode .
Facebook Social Plugins
Shortcode variations
[fb_plugin like] [fb_plugin send] [fb_plugin share] [fb_plugin save] [fb_plugin comments] [fb_plugin quote] [fb_plugin page href=] [fb_plugin post href=] [fb_plugin video href=] [fb_plugin group href=] [fb_plugin comment href=]
Change the default attributes for each plugin on settings or individually using shortcode attributes, see the list of all available attributes using the "help" attribute like this: [fb_plugin like help=1]
For example: To embed a complete Facebook fan page with the latest post, events, and chat; use the shortcode like this:
[fb_plugin page href=https://www.facebook.com/wpemf tabs=timeline,events,messages ]
To only show events use tabs=events
. For posts use "timeline" and for chat use "messages".
Embed a share button for your main fan page
[fb_plugin share href=https://www.facebook.com/wpemf layout=button_count ]
Remove the "href" attribute to share the current page even if its invoked from a widget.
Find all possible attributes on the plugin settings "Social Plugins" section. See live examples here.
Custom Embeds
Set up the use of custom embeds when possible automatically on settings, or change the type of embed individually using the main shortcode.
For example: To embed an album, individual photo, post or fan page from Facebook use the shortcode like this:
[embedfb href=https://www.facebook.com/... social_plugin=false ]
Set the number of photos on embedded albums using the "photos" attribute
[embedfb href=https://www.facebook.com/... photos=200 ]
Select between different styles of embeds using the theme attribute
[embedfb href=https://www.facebook.com/... social_plugin=false theme=classic ]
Available themes are "default", "classic" and "elegant". Look on the FAQ on how to fully personalize your embeds.
Facebook Comments
Automatically replace the WordPress comments system with Facebook comments on selected post types or manually using the shortcode [fb_plugin comments]
.
To enable moderation, scrape URLs and custom embeds you have to set up a Facebook App ID and Secret on the settings page.
The Quote Social Plugin
Allow your visitors to share text from your site just by selecting it. Activate it automatically on selected post types or using the shortcode [fb_plugin quote]
To see it in action visit this plugin website and select any text Demo.
必需条件
[fbfullevent url]
[bfullpage url]
You can overwrite the embed template with a custom one.
$fb_data
array that contains the information retrieved from FacebookGo to "Advanced" section on settings and tick the option "Use permalinks on social plugins URLs" if it does not work, please create a support ticket mentioning the old comments plugin.
Social plugins will load at its own time via JavaScript, so you have to wait on them, for custom embeds a cache plugin will significantly increase performance.
The Facebook page you are trying to embed is not available to users logged out from Facebook.
This plugin only works for embedding albums.
Change the number of embedded photos on settings or use the shortcode like this [embedfb album_url photos=200 ] This can only be achieved using the premium version.
Time is the master. Right-click on the video, post, album, etc. time of creation and copy the URL. Buying the premium extensions helps to keep this project alive.
Buying the premium extensions helps to keep this project alive.