Hello All, I have a wordpress blog. I want to allow users to sign in with their facebook account. For that, I used wp-facebook connect plugin. I created an application, set up the API key, etc in admin panel. I then added the connection code in my sidebar.php. However, it is not working. It is not displaying the connect button. Any ideas? My blog is at: http://www.firsatkuponu.com/
Maybe, it's will help you... WP-FacebookConnect Installation 1. Copy the plugin to wp-content/plugins/wp-fbconnect under the Wordpress installation. a. In the WordPress Admin panel, visit the plugins page and Activate the plugin. b. Visit the settings page and select "Facebook Connect". Follow the given instructions to configure the plugin and obtain a Facebook API key. A minimal amount of theme integration is necessary. Open the 'comment.php' file in the theme and add the following line where the Connect login button should be inserted: <?php do_action('fbc_display_login_button') ?> The reason for calling fbc_comment_login via do_action instead of directly is to avoid spewing errors if the plugin is disabled. It would be equally correct to directly call fbc_comment_login() here. As a simple example, the comments.php file on my blog looks like: <?php if ( $user_ID ) : ?> ... .... ` Note that the fbc_comment_login function should be called regardless of whether the user is currently logged into WP or not. It will DTRT. See config.php and the Settings page for more configuration and customization options. >> www.BidAnswer.com (get a $10 credit to post question)
The problem with using localhost as the connect url is that facebook cannot access it, localhost is for your local machine and for facebook to connect to your computer you will need some sort of domain service to allow it to connect and then proper settings on your router to allow the communication to come through. I would recommend setting it up on a web host and trying to use the sdk from there.