Sharing content from Joomla website on Facebook

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
warpw
Joomla! Apprentice
Joomla! Apprentice
Posts: 26
Joined: Sat Aug 30, 2014 12:39 am

Sharing content from Joomla website on Facebook

Post by warpw » Mon Dec 22, 2014 4:47 pm

Hello! There are enough extensions which can tell Facebook which image to display on Facebook news feeds and so on when someone shares the respective content by using the "Share" button. But unfortunlately this works just when these images are present directly in the article. When they're loaded there through some gallery module that can be there thanks to plugin "Load Module into Article", then Facebook doesn't know which image to use. Do you have any ideas how to solve this issue or do you know about any extension that I may have missed and that can work this out or an extension that would allow me to simply select custom image that will appear on Facebook? Thank you.

In case that anyone needs to see the site, it's
[code]http://www.zuzanej.cz/[/code]

User avatar
luck_Rx
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Fri Mar 14, 2014 6:16 pm
Location: México
Contact:

Re: Sharing content from Joomla website on Facebook

Post by luck_Rx » Mon Dec 22, 2014 5:41 pm

Hi

Facebook uses whats called the Open Graph Protocol to decide what things to display when you share a link. The OGP looks at your page and try's to decide what content to show. We can lend a hand and actually tell Facebook what to take from our page.

The way we do that is with og:meta tags.

The tags look something like this -

<meta property="og:title" content="Stuffed Cookies" />
<meta property="og:image" content="http://yoursite/images/image.jpg" />
<meta property="og:description" content="The title" />
<meta property="og:url" content="http://yoursite/page">

In JED (extensions.joomla.org) you can find some plugins that add this information in your <head automatically. Look for "facebook ogp" and you will find a lot of helping extensions.

The faceebook URL debugger (https://developers.facebook.com/tools/debug/) can help you to see how a url is taking your site and "reset" it.

:)


Locked

Return to “General Questions/New to Joomla! 3.x”