yusttas / jk_opengraph

Adds the open graph meta tags to your Prestashop site. Open graph meta tags allow you to control what content shows up when a page is shared on Facebook.
GNU General Public License v3.0
44 stars 7 forks source link

Can't change open graph image #2

Closed Oxyde59 closed 4 years ago

Oxyde59 commented 4 years ago

Hello,

i dont' understand why, but I can't change the open graph image. If I choose and upload another file, it's still the original one in use. Bug ? thanks !

Oxyde59 commented 4 years ago

I try to reinitilaize the module, still first image. I try to uninstall and reinstall module, still this image...

yusttas commented 4 years ago

It works for me, not sure whats wrong.

Maybe you checked "Use index tags". In that case index tags image will be used, and you will not see new image until you select "Use meta tags" or "Use custom tags".

Otherwise, does image not changes in preview? Or it not changes inside tag (when you looking page source) ?

bertalan commented 4 years ago

After turned on "use meta tags" in product setting, in "views/templates/hook/opengraph.tpl" I have changed to: <meta property="og:image" content="{$tags.image}" />

I know this is a dirty solution.

mrick01 commented 4 years ago

Hello, thank you for your module, but I have the same problem, I can't update the image, even by going through the debug of facebook, and by emptying the prestashop cache, the problem is that when we download an image from "index tag", the name of the image is always converted with the same name in the ftp "og-index.png", and it is impossible to update for FB, because it considers that it is the same image, and I change the name of the image in the ftp, for example "og-index2.png" it does not work, can you make a modification of the module so that when we download an image, it keeps the name of the image, thank you

yusttas commented 4 years ago

Now images will be named differently every time.

mrick01 commented 4 years ago

I don't understand your answer, I put a different image name, but the module always renames the same name "og-index" that's the problem, so facebook does not change the image cache because for her it's the same name, you may have a link on a last update that fixes this problem?

yusttas commented 4 years ago

Datetime is added to image names now https://github.com/yusttas/jk_opengraph/commit/35331bcd082ab8c241c32a0bf5242af47922e80e

mrick01 commented 4 years ago

Ok but what should I do to download and replace a file in the module?

yusttas commented 4 years ago

Yes, "jk_opengraph.php" file

mrick01 commented 4 years ago

I don't see where and how to download it if you can help me thanks

yusttas commented 4 years ago

Just download all files like you did with old version (with button clone or download) from here https://github.com/yusttas/jk_opengraph and copy the needed file

aimeric01600 commented 2 years ago

Hello, when I select in the module jk_opengraph Use meta tags of the cms page, it does not work, it takes open graph image below that of custom, I would like it to take one of that of the cms page of Prestashop 1.7

How to do ? Thank you for your help, (I emptied the prestashop cache and it's the same)

Best Regards

aimeric01600 commented 2 years ago

It does not take the image in the cms page, it will look for the custom image, yet the selector is of course "Use meta tags"

aimeric01600 commented 2 years ago

Hi, do you have receveid my message

aimeric01600 commented 2 years ago

I need to be able to display the image of the cms page, because for SEO it is important, thank

mrick01 commented 2 years ago

Hello, when I select in the module jk_opengraph Use meta tags of the cms page, it does not work, it takes open graph image below that of custom, I would like it to take one of that of the cms page of Prestashop 1.7

How to do ? Thank you for your help, (I emptied the prestashop cache and it's the same)

It does not take the image in the cms page, it will look for the custom image, yet the selector is of course "Use meta tags"