Karolina.herbarium Posted January 23, 2017 Share Posted January 23, 2017 Hi When I'm posting my homepage link on Facebook it shows it with random image (usually its one of the products image). Is there any chance to change it so I can choose what image I would like to show with my homepage link on FB? Thanks for help! BTW. I'm using apfarm template and have 1 year support but they say they can't change it Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2017 Share Posted January 23, 2017 you need to use some module that will build custom open graph tags for your website Link to comment Share on other sites More sharing options...
Karolina.herbarium Posted January 23, 2017 Author Share Posted January 23, 2017 Do you have any specific-one in mind? Link to comment Share on other sites More sharing options...
joseantgv Posted January 23, 2017 Share Posted January 23, 2017 Hi When I'm posting my homepage link on Facebook it shows it with random image (usually its one of the products image). Is there any chance to change it so I can choose what image I would like to show with my homepage link on FB? Thanks for help! BTW. I'm using apfarm template and have 1 year support but they say they can't change it I think that you need this: https://www.prestashop.com/forums/topic/303359-free-module-facebook-open-graph-tags/ Link to comment Share on other sites More sharing options...
Karolina.herbarium Posted January 23, 2017 Author Share Posted January 23, 2017 I used this module for it but it looks like it doesn't work with my website . I cleared all cache from cache/smartycompile, cache/smarty/cache and img/tmp but it didn't change anything. Any ideas? Link to comment Share on other sites More sharing options...
Norwegian Rat Posted January 24, 2017 Share Posted January 24, 2017 You can also hardcode the OP-code in your themes "header.tpl". Add the "meta property" Right under the {$HOOK_HEADER} If you want to change the picture you just replace it with a FTP-program or through your hosts control panel. It will only show one image though. Not sure about what you need, but in many cases this will work out ok. <meta property="og:title" content="title_goes_here"> <meta property="og:description" content="description_goes_here"> <meta property="og:image" content="full_path_to_your_image_here"> <meta property="og:url" content="your_webpage_here"> <meta property="og:type" content="website"> <meta property="fb:app_id" content="facebook_address_here" /> Also remember to turn on force compile and no caching in your BO under "Performance" when you have made modifications to your theme files Link to comment Share on other sites More sharing options...
klaypigeon Posted March 14, 2017 Share Posted March 14, 2017 Doesn't change anything as far as I can tell. Frankly I am a little surprised that Prestashop doesn't do this out of the box. I shouldn't have to be monkeying with this or buying a module. It should just work in native code. {$HOOK_HEADER} <meta property="og:title" content="The Creambelt Seed Company - Untreated and Organic Heirloom Garden Seeds" /> <meta property="og:description" content="Buy Untreated and Certified Organic Garden Seeds to Grow Heirloom and Open-Pollinated Vegetables, Flowers, and Herbs" /> <meta property="og:url" content="http://creambelt.com" /> <meta property="og:type" content="website" /> <meta property="og:image" content="{$img_ps_dir}Squash-logo-facebook.jpg" /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now