Complete Facebook Integration for Joomla
Have an issue with Facebook integration into JomSocial? Look here for the most common support questions.
No. Facebook sends information to your site while a user is connected. There should only be one Facebook Connect extension running on your site to receive these messages, or else problems can arise. When using JFBConnect, you should disable JomSocial's Facebook Integration by removing the API/Secret keys from the "Facebook Connect" tab in their configuration area.
This question is usually asked when by users who want to add the "Login With Facebook" button to the JomSocial homepage. If you want to add the button to a different page, the steps below still apply, but you will need to find the correct template file.
The landing page for JomSocial, when a user is not logged in, is generate by the frontpage.guests.php template file. To add JFBConnect's "Login With Facebook" button to this file:
Create a template override for the file you want to modify. To create a template override, you'll want to copy:
/components/com_community/templates/<YOUR JS TEMPLATE>/frontpage.guests.php
to
/templates/<YOUR JOOMLA TEMPLATE>/html/com_community/frontpage.guests.php
Edit the file you just created
Add the text {JFBCLogin} wherever you want the Login With Facebook button to appear
In the frontpage.guests.php file, a good spot is directly below the following line (toward the bottom of the file, where JomSocial normally places it's Facebook login button):
<?php echo $fbHtml;?>
Another common page to add the Login With Facebook button is the main registration page. This template file is located at below, and should be copied to your main template directory (as above) to create a proper template override:
/components/com_community/templates/<YOUR JS TEMPLATE>/register.index.php
Once copied, you can add the {JFBCLogin} text anywhere, but a good recommendation is at the top right before the table that starts the registration form, or at the bottom (where JomSocial puts it's Login With Facebook button) after the $fbHtml text.
Included with JFBConnect is the JomSocialPostToWall plugin. When installed and enabled, this plugin will automatically publish any status updates from your users that back to their Facebook Wall. For this feature to work, you will need to ensure that the "Publish to Stream" permission is requested of the user when they connect to your site. Please note that the user has the option to decline this permission, in which case the status will not be posted back to Facebook even if the Post To Wall plugin is enabled.
To ensure the request for this permission is presented to the user, add the following text to the "Additional Permissions Request:" setting in the Configuration -> Facebook API area of JFBConnect:
publish_stream
JFBConnect will automatically request this permission if you have the New User Status or Returning User Status features enabled. However, it's best to explicitly provide it here to ensure the JomSocial post-to-wall plugin functions properly.
SourceCoast was founded in 2008. Bringing over 20 years of technology experience to the table, we're a small company devoted to customer happiness. It's our utmost goal to make sure you're happy with your decision to use our products.