mercredi 25 février 2015

Facebook remembers previous image when trying to share page

This is driving me mental! I have page which has a share button on it, for arguments sake I have hard coded the image name and title in the controller as shown here



public ActionResult ThankYou()
{
var model = new LabCombination
{
ImageCombination = "danone_ultimate_coconut_vanilla.png",
ImageTitle = "danone_ultimate_coconut_vanilla"
};

return View(model);
}


In my view I do this



<meta property="og:title" content="Check out the flavour I just made! @Model.ImageTitle" />
<meta property="og:description" content="Check out the flavour I have just created!" />
<meta property="og:image" content="http://ift.tt/1zfAogH" />
<meta property="og:url" content="http://ift.tt/1FqcwLU" />


which renders as follows



<meta property="og:title" content="Check out the flavour I just made! danone_ultimate_coconut_vanilla" />
<meta property="og:description" content="Check out the flavour I have just created!" />
<meta property="og:image" content="http://ift.tt/1wpO6TI" />
<meta property="og:url" content="http://ift.tt/1FqcwLU" />


When I do the facebook scraper I see this enter image description here


yet when I go to the page a press share I see this


enter image description here


Why is facebook not refreshing! I have cleared the cache in my browser!


You can scrap the page here


http://ift.tt/1sbmVox


with the following url


http://ift.tt/1FqcwLU


Any help would be appreciated


Aucun commentaire:

Enregistrer un commentaire