Hey all, Some of you may have tried to share a link on Facebook and it always defaults to the same thumbnail or none. I would like it when I share a listing link it will pull the first thumbnail image from my view listing page. I know I have to ingrate this in somehow <meta property="og:image" content="http://www.performancecentral.com.au/photos/{$image.image}" /> But I am unable to input that in to the viewlistings.tpl file,
You wouldn't put that in the view listings.tpl file you would put it in the layout.tpl file... Check the variables with smarty debug first {debug} but you can just use smarty logic in the <head> on the layout.tpl similar to this with the correct variables: {if $template="viewlisting.tpl"} <-- check this variable to ensure it is correct <meta property="og:image" content="http://www.performancecentral.com.au/photos/{$image.image}" /> <-- check this variable too {/if} You would also most likely want the pic to be the thumbnail pic.
I implemented the feature you are looking for. Hope the following thread will help. http://www.68classifieds.com/forums...pen-graph-tag-og-image-in-head-section.10867/ Peri