Topic-icon Image not Correct

Active Subscriptions:

None
11 years 2 months ago - 11 years 2 months ago #52003 by [email protected]
The Facebook share button is pulling an image that is incorrect. When I check it with social debug it is correct. Somehow it is pulling an image I no longer have on my server.

I found the problem. It is with the .htaccess browser cache. When I remove it, it works good.

Do you have a model .htaccess browser cache?
Last edit: 11 years 2 months ago by [email protected].
The topic has been locked.
Support Specialist
11 years 2 months ago #52005 by alzander
Replied by alzander on topic Image not Correct
I'm not sure what you're asking. Can you explain what in your .htaccess file was causing the caching that was causing the problem? In general, if you are using image/file/browser caching, you'll need to make sure those caches get cleared whenever you make updates to your site. There's not a way we can get around that.

Let us know any more information you can and we'll help however we can, but not sure if there's much we'll be able to do.

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

None
11 years 2 months ago #52011 by [email protected]
Ok. I was wrong. I am still having the same problem. I have removed browser caching and I am still having the problem.

Here is an example page:
www.lifespringschristianchurch.org/lscc-...are-you-really-saved

I am attaching images:

I removed browser cache from .htaccess
I have cleaned my cache and temporary files on my computer.
I have cleaned joomla cache
I can't seem to figure out the problem.


File Attachment:


File Attachment:


File Attachment:


File Attachment:
The topic has been locked.
Active Subscriptions:

None
11 years 2 months ago #52012 by [email protected]
Ok, I am making progress. It seems that there is a problem with the default image being set in opengraph. There is a conflict somewhere. I changed the default picture and then none shows up. I take the exact same code and add it to a custom html item on the actual page and it works. This is a work around. I need to get the default image working.
The topic has been locked.
Support Specialist
11 years 2 months ago #52022 by alzander
Replied by alzander on topic Image not Correct
The default image looks to have an erroneous } at the end:
https://lifespringslh.s3.amazonaws.com/life-springs-christian-church-banner-484x252px2.jpg}
Can you check the Open Graph -> Configuration -> Defaults area and make sure you don't have an extra } at the end? The value should be entered into that area like:
image=https://lifespringslh.s3.amazonaws.com/life-springs-christian-church-banner-484x252px2.jpg

I hope that helps fix things up, but if not, let us know!

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

None
11 years 1 month ago #52659 by [email protected]
I am really sorry it took so long to get back. I fixed the code you mentioned. I am now having the same problem with this page:
www.lifespringschristianchurch.org/video...ur-heart-be-troubled

I have tried disabling lots of plugins, adding tags defining the image right in the article, etc. I just can't get it to show the right image.
File Attachment:


File Attachment:
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #52665 by [email protected]
That is the strangest thing. I decided to go ahead and share it with the wrong picture in the preview, and the correct picture posts to FB. So I guess it works fine.
The topic has been locked.
Support Specialist
11 years 1 month ago #52670 by mel
Replied by mel on topic Image not Correct
Looking at your page source, it is probably because there are multiple og:image tags on your page. For the link you provided, there are 4 images present. When there are more than one, Facebook will decide which one is the best.

The image tags at that link:
<meta property="og:image" content="http://www.lifespringschristianchurch.org/media/k2/items/cache/88f8f2b43d0833f0d7a890636dcf72fe_XS.jpg" />
<meta property="og:image" content="http://lifespringschristianchurch.org/images/k2/bishop-chris-marere-1.jpg"/>
<meta property="og:image" content="http://www.lifespringschristianchurch.org/media/k2/items/cache/88f8f2b43d0833f0d7a890636dcf72fe_XL.jpg"/>
<meta property="og:image" content="https://lifespringslh.s3.amazonaws.com/life-springs-christian-church-banner-484x252px2.jpg"/>

The first is added by some other component (not JFBConnect) and the last 3 are in the JFBConnect block of og tags. How is your JFBConnect Open Graph set up? If you have a default image set up in JFBConnect > Open Graph > Configuration, an Easy-tag and are using one of our Content plugins, I can see how there would be multiple images on the page.

Also, keep in mind that after you change any tags on your page, you will need to re-scrape at developers.facebook.com/tools/debug/ with Debug button and then 'Fetch New Scrape Information' button in order to test the changes.

-Melissa
The topic has been locked.
Active Subscriptions:

None
11 years 1 month ago #52858 by [email protected]
Thanks Melissa,

All of those images are the same image, and are not the image that is showing in the preview. It seems that FB is pulling the wrong image at first, but when I actually post it, it gets the correct image despite the incorrect one showing. It is very strange.
The topic has been locked.
Support Specialist
11 years 1 month ago #52867 by alzander
Replied by alzander on topic Image not Correct
Facebook has many layers of cache for many different things. I just tried to share your page and the preview image is now showing correctly.
File Attachment:


My guess is that the incorrect image was set on the page at some point, but not Facebook has properly determined the right image to use.

If you run into any other issues, just let us know.

Thanks,
Alex
The topic has been locked.