Topic-icon Incorrect images when posting back to Facebook

Active Subscriptions:

None
URL: bunibuni.com/all-category/world-news/304...ellets-at-us-airport

When you make a comment or recommend the link and then post it to facebook, it is supposed to display the image in the article on facebook. However, it shows a random picture from the directory /images/stories. It does it for all articles. See screenshot.
File Attachment:
The topic has been locked.
Support Specialist
14 years 2 months ago #20862 by alzander
The image is selected using the Open Graph tags. In JFBConnect's Social Configuration area, you can enable JFBConnect to automatically try to select the best image for a Joomla or K2 article. Alternatively, you can add {JFBCGraph image=http://site.com/link-to-image.jpg} into your article text to have that one used.

Please note that it can take Facebook a few days to recognize the new tag and changes won't be immediate. You can use the Debug Tool from Facebook to test first though:
developers.facebook.com/tools/debug

Hope that helps explain,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #20873 by blink_black
Thanks Alzander. How about the description. FB is using my metatag as the description. How can I get it to use the first set of words in the article.
The topic has been locked.
Support Specialist
14 years 2 months ago #20885 by alzander
In the Open Graph tab of the Social Configuration area of JFBConnect, there's a setting to use the first portion of each article as the description. Alternatively, you can add the {JFBCGraph description=This is a description} tag to any page to set the description. You can also set the title in the same way.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21015 by blink_black
Hi,

I selected the option to use the first portion of each article as the description but it still wont work. It just shows " <a rel" under description.
The topic has been locked.
Support Specialist
14 years 2 months ago #21041 by alzander
Where are you seeing that incorrect description showing up? On the page you link to in the first post, the Open Graph description is set to:

meta property="og:description" content="A cool hangout spot for Africans. Enjoy Latest Entertainment, Celebrity, Gossip, Politics News; Nigerian Nollywood Movies and Ghana Ghallywood Films, Nigerian Music


Did you disable the automatic Open Graph descriptions in JFBConnect? If so, can you re-enable them and then hit the following link and let us know what the og:description that shows up for that page is:
developers.facebook.com/tools/debug/og/o...ellets-at-us-airport

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21044 by blink_black
Yes I disabled it because when I enable it, it messes up the og:image also. I have enabled it back now. Please click on the link and see for yourself.
developers.facebook.com/tools/debug/og/o...ellets-at-us-airport
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21046 by blink_black
Also when I enable that, it adds the path on top of each page. See screenshot of this link:
bunibuni.com/all-category/world-news/326...o-sexually-abuse-her
File Attachment:
The topic has been locked.
Active Subscriptions:

None
14 years 2 months ago #21047 by mtk
Hello,
there are two issues here:
  1. you seem to have an additional social plugin enabled on the website which has its own JS that is causing issues with JFBC's JS.
    I suggest disabling that social plugin at least until you have JFBC up and running correctly.
  2. the {OpenGraph} tag is incorrectly formed. please take a look at:
    * Alex's example:
    {JFBCGraph image=http://site.com/link-to-image.jpg}
    * Custom Tags Guide, at the Graph Section.

let us know if that helped.

MAti
The topic has been locked.
Support Specialist
14 years 2 months ago #21063 by alzander
Blink,
Some other notes in addition to Mati's that may help.

Looking at the code on the page, there are some unclosed tags in the article content. At the very top, if you look at the code, like below. On that 3rd line, there's a closing tag without any opening tag. Stuff like that can confuse our automatic 'guess' for the best description, and is bad for browsers and search engines:
			
									a rel="jagroupgroup"
Check out where that extra /a is coming from and I'd also recommend looking for other bad tags in your code.

Another thing to play around with is the ordering of the content plugins. It seems like you have multiple content plugins altering the article. I'd recommend moving the JFBCContent plugin to the first position so that it sees the raw article without any changes that may be made to it by later plugins.

Hopefully, some of that helps, but if not, let Mati or I know.

Thanks,
Alex
The topic has been locked.