I'm having an issue with Facebook not pulling the correct photos to use as a thumbnail when someone shares one of the dynamic pages on my site.
I read on the FB site that I should use Open Graph (og) tags in a meta tag on my site.
So that's what I tried to do.
<cfset photoext =".jpg">
<cfset finalphoto = #ID_Number# & photoext>
<meta property="og:image" content="http://www.mysite.com/site-data/photos/property/1/#finalphoto#
However, whenever I check any of my pages using the Facebook debugger:
It appears as though Facebook is not seeing the resolved value of #finalphoto# because the URL is says it scraped is:
If I hard code in a photo name in the meta tag then FB sees it just fine.
<meta property="og:image" content="http://www.mysite.com/site-data/photos/property/1/hardcodephoto.jpg
I created a log file using <cffile> and write the value of the meta tag to the log file and see that the generated URL/photo is completely valid.
I am not understanding why the value of #finalphoto# isn't being resolved by the facebook scraper.
Anyone have any ideas?