How to Use the "Default image" Feature in Shack Open Graph

Documentation for Joomla 3

The Shack Open Graph plugin helps Facebook to find proper images in your Joomla 3 articles.

But what if some of your Joomla articles don't have images? Or what if for some reason Facebook fails to scrape an image of your Joomla article?

This is what the "Default image" feature in Shack Open Graph is for.

the default image setting

Let's take a look at the "Default image" parameter in use.

Here is a sample Joomla article without an image:

joomla article without image

What if your Joomla site visitor decided to share this article with their Facebook social network? Let's assume you are using out-of-the-box default Shack Open Graph settings. In such a case, the visitor won't see any images in the preview of their Facebook post:

no image in facebook preview of the post

Let's fix it with the Shack Open Graph plugin using its "Default image" parameter.

  • In your Joomla administrator panel, go to "Extensions" > "Plugins":

go to extesions plugins

  • You will be taken to the "Plugins" screen. Find the "Shack Open Graph" plugin and open it up for editing.
  • On the "Plugin" tab, in the "Images" group of parameters, find the "Default image" setting, as shown in the image below. Click the "Select" button and select an image from your Joomla 3 Media component:

click select and select an image

  • Click "Save". 

You are almost ready to test this new setting at work. You just need to clear Facebook's cache, so that FB would be able to scrape your image-less Joomla article afresh.

  • Click the "Advanced" tab:

click the advanced tab

  • Click the "Open Facebook Debugger" button:

click open facebook debugger

  • This will bring you to the "Facebook for developers" screen, with the "Sharing Debugger" tab open, as you can see in the screenshot below. Enter the URL of your image-less Joomla article into the field and click "Debug":

enter url of the page click debug

  • Click the "Scrape Again" button twice:

click scrape again

You will see the default image in the Facebook preview of the article:

the final result

Documentation for Joomla 5

The Shack Open Graph plugin helps Facebook to find proper images in your Joomla 5 articles.

But what if some of your Joomla articles don't have images? Or what if for some reason Facebook fails to scrape an image of your Joomla article?

This is what the "Default image" feature in Shack Open Graph is for.

the default image setting

Let's take a look at the "Default image" parameter in use.

Here is a sample Joomla article without an image:

Joomla 5 article without image

What if your Joomla site visitor decided to share this article with their Facebook social network and add a nice image to it? This is where the "Default image" parameter comes in.

Here is how to set it.

  • In your Joomla administrator panel, go to "System" > "Manage" > "Plugins":

 the plugins link

  • You will be taken to the "Plugins" screen. Find the "Shack Open Graph" plugin and open it up for editing.
  • On the "Plugin" tab, find the "Default image" setting, as shown in the image below. Click the "Select" button and select an image from your Joomla Media component:

selected image

  • Click "Save". 

You are almost ready to test this new setting at work. You just need to clear Facebook's cache. If you image-less article has already been shared before, then Facebook keeps it in its cache.

To clear the page from the cache:

  • Click the "Advanced" tab:

the advanced tab

  • Click the "Open Facebook Debugger" button:

the open facebook debugger link

  • This will bring you to the "Facebook for developers" screen, with the "Sharing Debugger" tab open, as you can see in the image below. Enter the URL of your image-less Joomla article into the field and click "Debug":

the url of the imageless page

  • Click the "Scrape Again" button twice. You will see the default image in the Facebook preview of the article: