When you have your object ready in your Facebook Application, either because you created it or you are using a Facebook pre-defined/built-in object, the next step is to configure JFBConnect to use that object and apply it to pages on your site.
JFBConnect installs multiple Open Graph plugins automatically when the component is installed. To set specific pages from your site as Facebook Open Graph Objects, first enable the Open Graph Plugins in the Joomla Plugin manager that you wish to use, like Content (Joomla Articles), JomSocial, EasyBlog, K2, jReviews or others. Then those object types will be available to create in the JFBConnect Open Graph area.
Create a Open Graph Object in Joomla
Going along with our example of creating a "I Cooked this Recipe" object/action previously created in Facebook, we'll be creating the similar object and actions in JFBConnect so that they can be used. To do this, go to the Open Graph control panel section of JFBConnect, and click on the "Objects" button.
Note: If you are not creating an action, the below steps will still guide you through how to configure the Open Graph description and image tags that will be used when your content is used in a Facebook wall post (when a user Likes, comments or shares the page). The recommended default settings for Joomla content would be an "Object Type" of 'article' with the 'Built-in Facebook Object' box checked.
In the Object listing area, click "New" in the top right, and you'll see a popup like below:
The list of available object types is created from the enabled Open Graph plugins on your site. If you cannot find an expected object type despite having a supported third party extension on your site, please ensure that 1) JFBConnect has properly installed the Open Graph plugin on your site and 2) that the plugin is enabled. If the third party extension was installed after JFBConnect or JFBConnect failed to detect the extension properly, our corresponding Open Graph plugin may be missing. You can either simply reinstall JFBConnect or manually install the Open Graph plugin. To manually install, there is a /packages/plugins/opengraph directory in the JFBConnect installation zip file. The supported Open Graph plugins can be found and manually installed from here.
For our case, we have "Recipes" that are articles, so we want to create a Joomla Content - Article type of object. This will allow us to set all articles from a specific category, and it's sub-categories, as a specific object type. Once selected, you'll see a configuration page like below:
The left-hand settings are the most important for defining your object. The main settings to configure here are:
The settings on the right side are custom parameters for each extension object type on how to configure the default Open Graph tags for these types of objects. In this example and the image above, the settings are all for Joomla article types. Object types for JomSocial, jReviews, EasyBlog and other plugins will have different parameters. A description of each setting, and how it's configured for our example is below:
Once configured as above, your Joomla articles in the selected category will now have a "Type" of "recipe". From here, you can create your action that users can take on this object, like "I cooked the recipe".