{"id":15402,"date":"2011-10-23T18:47:42","date_gmt":"2011-10-23T18:47:42","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/facebook-comments-otf\/"},"modified":"2011-10-24T01:03:31","modified_gmt":"2011-10-24T01:03:31","slug":"facebook-comments-otf","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/facebook-comments-otf\/","author":8074338,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"3.2.1","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Facebook Comments (OTF)","header_author":"Sawyer Hollenshead (Shaken &amp; Stirred Web)","header_description":"","assets_banners_color":"","last_updated":"2011-10-24 01:03:31","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=TAPWP9QGK6NDG","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/social-bartender","header_author_uri":"http:\/\/shakenandstirredweb.com","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3587,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[107,5708,157,28457,174],"plugin_category":[44,56],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-15402","plugin","type-plugin","status-closed","hentry","plugin_tags-comments","plugin_tags-discussion","plugin_tags-facebook","plugin_tags-only-the-functions","plugin_tags-social","plugin_category-discussion-and-community","plugin_category-social-and-sharing","plugin_committers-shakenstirred"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/facebook-comments-otf.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Facebook Comments (OTF) is part of the <a href=\"http:\/\/onlythefunctions.com\">\"Only The Functions\" movement<\/a> &mdash; A collection of WordPress plugins that give code-savvy users access to functions which return the information \/ functionality they are looking for, and allows them to place it where they want, without any hacking to change default behavior.<\/p>\n\n<p>This plugin includes functions for displaying a Facebook comment form and functions for retrieving the comment count. View the installation instructions for more info regarding these functions.<\/p>\n\n<p>For updates, follow <a href=\"http:\/\/twitter.com\/sawyerh\">@sawyerh<\/a>.\nYou can contribute to this plugin on GitHub: https:\/\/github.com\/sawyerh\/facebook-comments-otf<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin<\/li>\n<li>Place the comment form function in your theme code (probably want to put it in single.php)<\/li>\n<\/ol>\n\n<h4>For moderation capabilities<\/h4>\n\n<ol>\n<li><a href=\"https:\/\/developers.facebook.com\/apps\">Create a Facebook App<\/a><\/li>\n<li>Copy the App ID and paste it into the plugin Settings (Settings &raquo; Facebook Comments)<\/li>\n<\/ol>\n\n<h4>Available Functions<\/h4>\n\n<p>When you place a plugin function into your theme, you will likely want to wrap it with an <code>if( function_exists('FUNCTION_NAME_HERE') )<\/code> condition. This way, if the plugin gets disabled, your theme won't explode.<\/p>\n\n<p><strong>fbc_comment_form( $args )<\/strong>\nOutputs the Facebook comment form onto the page:<\/p>\n\n<p>$args is an optional associative array that you can implement to override the following defaults:<\/p>\n\n<ul>\n<li>(int) num_comments (Default = 10)<\/li>\n<li>(int) width (Default = $content_width | 500)<\/li>\n<li>(string) app_id (Default = option set in settings | null)<\/li>\n<li>(string) color (light|dark, Default = light)<\/li>\n<li>(int) id (Default = $post-&gt;ID)<\/li>\n<li>(string) notify_email (Default = post author's e-mail)<\/li>\n<\/ul>\n\n<p><strong>fbc_comment_count( $id, $zero, $single, $plural )<\/strong>\nOutputs a formatted comment count structured for multiple scenarios (0, 1, and multiple comments) onto the page<\/p>\n\n<ul>\n<li>(int) $id - Default = $post-&gt;ID<\/li>\n<li>(string) $zero - Default = 0 comments<\/li>\n<li>(string) $single - Default = 1 comment<\/li>\n<li>(string) $plural - Default = comments<\/li>\n<\/ul>\n\n<p><strong>fbc_get_comment_count( $id )<\/strong>\nReturns only the comment count number<\/p>\n\n<ul>\n<li>(int) $id - Default = $post-&gt;ID<\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Provides functions to be used to display a Facebook comment form and retrieve the comment count","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15402"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shakenstirred"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15402"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15402"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15402"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15402"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15402"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}