{"id":4284,"date":"2009-01-04T23:28:16","date_gmt":"2009-01-04T23:28:16","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-facebookconnect\/"},"modified":"2010-07-15T01:42:12","modified_gmt":"2010-07-15T01:42:12","slug":"wp-facebookconnect","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-facebookconnect\/","author":1490004,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"trunk","tested":"2.9.2","requires":"2.5","requires_php":"","requires_plugins":"","header_name":"Facebook Connect","header_author":"Adam Hupp","header_description":"","assets_banners_color":"","last_updated":"2010-07-15 01:42:12","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/hupp.org\/adam\/","rating":0,"author_block_rating":0,"active_installs":80,"downloads":107796,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.1","1.1.1","1.1.2","1.2.0","1.2.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[107,157],"plugin_category":[44,56],"plugin_contributors":[82561],"plugin_business_model":[],"class_list":["post-4284","plugin","type-plugin","status-closed","hentry","plugin_tags-comments","plugin_tags-facebook","plugin_category-discussion-and-community","plugin_category-social-and-sharing","plugin_contributors-ahupp","plugin_committers-ahupp"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-facebookconnect.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WP-FacebookConnect adds Facebook functionality to Wordpress using the\nFacebook Connect APIs.  Features include:<\/p>\n\n<ul>\n<li>Single-signon with your Facebook account<\/li>\n<li>Publish comments to the newsfeed<\/li>\n<li>Comment avatars display Facebook profile photos<\/li>\n<\/ul>\n\n<p>What's New:<\/p>\n\n<p>1.3\n - Add a \"Like\" button to posts\n - No longer set user_email because it no longer works, and overwrites\n   user-entered addresses<\/p>\n\n<p>1.2\n - Template bundles have been replaced with the stream.publish API.\n   Any template customizations will need to be updated for this API.<\/p>\n\n<h3>Upgrades<\/h3>\n\n<p>Please see the <code>CHANGES<\/code> file for information that may be useful when\nupgrading from an older release.<\/p>\n\n<h3>A note on 'nofollow'<\/h3>\n\n<p>When a Facebook Connect user posts a comment the author field of the\ncomment will link back to that user's public profile page at Facebook.\nFor instance, my comments link back to\nhttp:\/\/www.facebook.com\/people\/Adam-Hupp\/806285106.<\/p>\n\n<p>To reduce spamming Wordpress automatically adds the nofollow attribute\nto all comment links, but this is undesirable when the links are\ngenerated by a trusted source (e.g the plugin).  For this reason the\nplugin will remove the nofollow attribute from all Facebook user\ncomments.  This is configurable on the Settings page.<\/p>\n\n<h3>Known Problems<\/h3>\n\n<ol>\n<li>The login status box (\"Welcome, youname\") has a fixed size instead\nof expanding to fit the name.<\/li>\n<\/ol>\n\n<h3>Future Work<\/h3>\n\n<ol>\n<li>Support avatars and newsfeed for blog posters.<\/li>\n<li>Notification when a friend comments on the same article you have.<\/li>\n<li>Widget to display your friends that have visited the blog.<\/li>\n<li>Widget to invite friends to read the article.<\/li>\n<\/ol>\n\n<h3>How Does it Work?<\/h3>\n\n<p>The first time a user selects the \"Connect\" button the plugin will\ncreate a new wordpress user named 'fbN', where N is a Facebook user\nid.  The Facebook user id is also stored in the wp_usermeta table\nunder the key 'fbuid'.  The plugin can securely identify the Facebook\nuser because it recieved signed session cookies along with the\nrequest.<\/p>\n\n<p>Once the Wordpress and Facebook account are linked and the Facebook\nuserid is verified the plugin sets a Wordpress login cookie.  The page\nreloads and at this point the user will be logged into the blog.<\/p>\n\n<p>Most login state handling occurs in fbc_init_auth.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Copy the plugin to wp-content\/plugins\/wp-fbconnect under the\nWordpress installation.\n\n<ol>\n<li>In the Wordpress Admin panel, visit the plugins page and Activate the plugin.<\/li>\n<li>Visit the settings page and select \"Facebook Connect\".  Follow the\ngiven instructions to configure the plugin and obtain a Facebook API key.<\/li>\n<\/ol><\/li>\n<\/ol>\n\n<p>A minimal amount of theme integration is necessary. Open the\n'comment.php' file in the theme and add the following line where the\nConnect login button should be inserted:<\/p>\n\n<pre><code>  &lt;?php do_action('fbc_display_login_button') ?&gt; \n<\/code><\/pre>\n\n<p>The reason for calling fbc_comment_login via do_action instead of\ndirectly is to avoid spewing errors if the plugin is disabled.  It\nwould be equally correct to directly call fbc_comment_login() here.<\/p>\n\n<p>As a simple example, the comments.php file on my blog looks like:<\/p>\n\n<pre><code>&lt;?php if ( $user_ID ) : ?&gt;  \n<\/code><\/pre>\n\n<p>...\n\n....\n<\/p>\n\n<p>`<\/p>\n\n<p>Note that the fbc_comment_login function should be called <em>regardless<\/em>\nof whether the user is currently logged into WP or not.  It will DTRT.<\/p>\n\n<p>See config.php and the Settings page for more configuration and\ncustomization options.<\/p>\n\n<!--section=faq-->\n<p>Please see http:\/\/wiki.developers.facebook.com\/index.php\/WP-FBConnect\n for up-to-date FAQs.<\/p>","raw_excerpt":"WP-FacebookConnect adds Facebook functionality to Wordpress using the","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/4284","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=4284"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ahupp"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=4284"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=4284"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=4284"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=4284"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=4284"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=4284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}