Thanks for the suggestions (the image is now attached from the last post). I ran the debug and got the following error:
Object at URL '
cyclemycity.com/index.php?option=com_com...5&groupid=&Itemid=25' of type 'article' is invalid because the given value '/index.php?option=com_community&view=events&task=display&Itemid=25' for property 'og:see_also' could not be parsed as type 'url'.
I 'fixed' the error by adding
cyclemycity.com/ to the start of all the og:see_also tags in com_community/helpers/head.php, but I'm not sure that I should be changing this as I would have thought that you'd have noticed if this was wrong. Should this file be changed, or is there a wrong setting somewhere that should be adding this to the start automatically?
I then got the following for the title:
og:title Future weekend ride's Event
So, then I also deleted the " 's Event " from en-GB.com_community. Again, I don't really want to do this because it is probably used in other circumstances. However, I then got the og:title Future weekend ride, which is what I wanted to see, but should be getting it via the SCOpenGraph custom parameter instead of modifying the language file...
The SCOpenGraph custom parameters are putting the title and image tag into the source code, but the Facebook Share popup is not picking them up. Maybe it is not adding them to the header as they appear at the very bottom of the code (twice), in relation to the 'Social Metatags | Create Post | X' buttons (there are 2 sets, but neither seem to do anything on my page). The only place it appears near the top is a few lines after the og:see_also tags, and I'm surprised are not being picked up by the Facebook Debug or Share popup. That set of tags looks like:
<meta name="twitter:title" content="Future weekend ride"/>
<meta property="og:title" content="Future weekend ride"/>
<meta name="twitter:image" content="
www.cyclemycity.com/images/stories/flash/slider2.jpg"/>
<meta property="og:image" content="
www.cyclemycity.com/images/stories/flash/slider2.jpg"/>
<meta property="og:url" content="
cyclemycity.com/index.php?option=com_com...oupid=13&Itemid=25"/>
<meta name="twitter:description" content="A ride in the hills?"/>
<meta property="og:description" content="A ride in the hills?"/>
<meta name="twitter:card" content="summary"/>
<meta property="og:type" content="article"/>
<meta property="fb:app_id" content="..."/>
<meta property="og:locale" content="en_gb"/>
<meta property="og:site_name" content="Cycle My City"/>
Looking at the Graph API Scraped URL at the bottom of debug I see that the custom parameters are not being scraped.
The below is from the Graph API:
{
"id": "...",
"url": "
cyclemycity.com/index.php?option=com_com...viewevent&eventid=75",
"type": "article",
"title": "Future weekend ride",
"locale": {
"locale": "en_gb"
},
"image": [
{
"url": "
cyclemycity.com/components/com_community/assets/event.png",
"width": 160,
"height": 160
},
{
"url": "
cyclemycity.com/components/com_community...er/event-default.png"
}
],
"description": "A ride in the hills?",
"see_also": [
"
cyclemycity.com/index.php?option=com_com...=frontpage&Itemid=22",
"
cyclemycity.com/index.php?option=com_com...sk=display&Itemid=19",
"
cyclemycity.com/index.php?option=com_com...sk=display&Itemid=22",
"
cyclemycity.com/index.php?option=com_com...sk=display&Itemid=22",
"
cyclemycity.com/index.php?option=com_com...sk=display&Itemid=25"
],
"site_name": "Cycle My City",
"updated_time": "2014-04-04T03:00:33+0000",
"created_time": "2014-04-03T03:27:46+0000",
"application": {
"id": "...",
"name": "CycleMyCity",
"url": "
www.facebook.com/apps/application.php?id=..."
},
"is_scraped": true
}
I can't work out why the custom parameters (image and title - although I hacked the title to be correct, as mentioned above) are being ignored...
Do you know why the custom tags may be ignored by the scraper even though they are in the source code?