Facebook free WordPress plugin
Description
Facebook free WordPress plugin
The Facebook plugin for WordPress adds Facebook social plugins to your WordPress site. Associate your WordPress site with a free Facebook application identifier to enable advanced features such as automatically sharing new posts to an author’s Facebook Timeline or your site’s Facebook Page. This plugin is developed by Facebook with extra support for popular plugins and themes, custom post types, and custom post statuses.
Features
Open Graph protocol markup optimizes your content for social sharing and rich story previews on Facebook, Twitter, Google+, Mixi, and more. Display large images, link to author pages, and improve story distribution through social news feeds.
Facebook Insights support for Facebook accounts associated with a Facebook application. Track rich audience data powered by Facebook profiles (age, location, language) and see how your content is shared on Facebook.
Add Like, send, and follow buttons to every post to help your site’s readers share content with friends or stay connected to future content shared by your site and its authors on Facebook.
Embed Facebook Posts by pasting a URL into your post composer, creating a shortcode, or calling a function from your theme.
Enable the Facebook Comments Box social plugin to encourage new comments from logged-in Facebook users and his or her Facebook friends. Comments associated with a post are sorted according to social signals including friend networks, most liked, or the most active discussion threads. Advanced features include moderation, blacklisted words, automatic grammar correction, and login support for AOL, Microsoft, and Yahoo! accounts.
Like Box displays recent activity from your Facebook Page and encourages new Like actions.
Recommendations Bar helps visitors discover additional content on your site by recommending posts and encouraging Like shares.
Recommendations Box suggests related posts in a configurable widget.
Configure your Facebook application for Open Graph action news publishing support for improved Facebook distribution of author Timeline stories and news-specific highlights.
Mention Facebook friends and Facebook pages in a custom message posted to your Timeline with your post.
Customize and extend the plugin through custom actions and filters.
Shortcodes
Add a Like Button, Send Button, Follow Button, or Embedded Posts using a shortcode inside your post or evaluated from within your theme. You may override site-level options with shortcode attributes defined on the social plugin’s page.
[facebook_like_button]
[facebook_send_button]
[facebook_follow_button href=”{$facebook_profile_url}”]
[facebook_embedded_post href=”{$facebook_post_url}”]
Contributing code
The development source code for this plugin is available on Facebook’s GitHub account. Pull Requests and code discussion welcome.
Custom actions & filters
Actions
facebook_settings_before_header_$hook_suffix – add content to a settings page before the main page header section
facebook_settings_after_header_$hook_suffix – add content to a settings page after the main page header section
facebook_settings_footer_$hook_suffix – add content to a settings page below the wrapper div
facebook_comment_form_before – comment form pluggable action replacing the WordPress comment_form() equivalent action comment_form_before
facebook_comment_form_after – comment form pluggable action replacing the WordPress comment_form() equivalent action comment_form_after
Filters
facebook_features – limit the plugin features available on your site
facebook_jssdk_init_options – customize arguments sent to the FB.init function of the Facebook JavaScript SDK
facebook_jssdk_init_extras – add extra JavaScript to the fbAsyncInit JavaScript function called after the Facebook JavaScript SDK is loaded
facebook_content_filter_priority – choose the priority of Facebook social plugin filters attached to the_content filter. Affects where Facebook content is output on your page relative to other plugins attached to the_content
fb_locale – directly define your site locale based on the list of Facebook locale mappings
facebook_excerpt_length – choose a custom length, in words, of a post excerpt generated for use in the Open Graph protocol description. default: 55
facebook_excerpt_more – string appearing at the end of a truncated excerpt string. default: “…”
fb_rel_canonical – customize the canonical URL used by Facebook for a post. Affects Open Graph protocol URL definitions, URL references sent in Open Graph actions, and more. default: result of get_permalink()
facebook_comment_schema_org – override output of search engine friendly comments content using Schema.org microdata markup
facebook_comments_number_more – override the default “% Comments” text used to generate a client-side comments number. similar to WordPress’ comments_number more parameter
facebook_og_type – set an Open Graph object type for a specific post early in the Open Graph process. Affects Open Graph protocol properties built with the page and later passed to fb_meta_tags. Affects Open Graph action publishing: only an article may be published to a Facebook Timeline using the news.publishes action
fb_meta_tags – Customize Open Graph protocol markup before it is output to the page
facebook_ogp_prefixed – true to always use prefixed properties (og:title) or false to use full IRI properties (http://ogp.me/ns#title)
facebook_rdfa_mappings – array of RDFa references with desired prefix. Used to remap Open Graph protocol properties from a full IRI to a prefix
facebook_wp_comments_title – set a custom title for the Facebook comments template
facebook_wp_list_comments – customize the arguments sent to wp_list_comments for display of WordPress comments inside the Facebook comments template
facebook_comments_wrapper – override the display of Facebook comments fetched from Facebook servers for display on the page. default: noscript. set to an empty string to prevent fetch and inclusion
fb_get_user_meta – fetch a user meta value by attaching to this filter, bypassing the WordPress user meta API
fb_update_user_meta – update a user meta value by attaching to this filter, bypassing the WordPress user meta API
fb_delete_user_meta – delete a user meta value by attaching to this filter, bypassing the WordPress user meta API