hi, how can i change/define what is used for meta proberty in Jomsocial Frontpage? Jomsocial is on my site the Default Menu/Hompage but this values in meta property are not very usefull!?
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.my-domain.com/"/>
<meta property="og:title" content="Willkommen bei my-domain.com"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=frontpage&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=groups&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=photos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=videos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=events&task=display&Itemid=113"/>
<meta property="og:site_name" content="My Domain"/>
Hi Testcouch,
we using general function for that:
/components/com_community/helpers/head.php at line at line 83, setType function
/components/com_community/views/frontpage/view.html.php line 39
CHeadHelper::setType('website', JText::sprintf('COM_COMMUNITY_FRONTPAGE_TITLE', $config->get('sitename')));
hi Albertus, thanks for your explanation. i have fixed some parts with changing language strings for COM_COMMUNITY_FRONTPAGE_TITLE and settings in sh404sef - Home Page Metas - social networking. but i can't change the og:see_also parts:
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=frontpage&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=groups&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=photos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=videos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=events&task=display&Itemid=113"/>
Hi Testcouch,
you can changing it by edit:
/components/com_community/helpers/head.php at line at line 134, you can see this code
case 'website':
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=frontpage'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=groups&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=photos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=videos&task=display'), true);
self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=events&task=display'), true);
self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename'));
break;
index.php?option=com_community&view=frontpage
hi Albertus,
thanks fot your pointing to correct lines. can i add here also Urls wich point to other installed Components? i ask because all currently added jomsocial Urls for og:see_also only viewable for logged in User!
can you explain in general what's the purpose of the og:see_also Urls? for me it's not clear because in facebook debug tools it's not showed anything about this additional see also Urls.
Edit: Facebook debuger shows also a warning:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
How can i define a og:image in head.php?
Hi,
1)
yes you can. if turned off joomla SEF and visit any component page at frontend or if you going to menu item detail at joomla menu manager. you can see the link like:
index.php?option=[something...]&[something...]
use that link at opengraph.
2)
about og:see_also is too technical, here the link that may explain it in better:
stackoverflow.com/questions/24157235/ope...rameter-using-method
3)
for og:image you can put new line code at there:
self::addOpengraph('og:see_also', [put your image URL at here], true);
Albertus wrote: Hi,
3)
for og:image you can put new line code at there:self::addOpengraph('og:see_also', [put your image URL at here], true);
Regards
self::addOpengraph('og:type', $type);
self::addOpengraph('og:url', JURI::getInstance()->toString());
self::addOpengraph('og:title', $title);
self::addOpengraph('og:see_also', [http://www.my-domain.de/images/content/logos/opengraph.jpg], true);
Hi,
the code must be like this:
self::addOpengraph('og:type', $type);
self::addOpengraph('og:url', JURI::getInstance()->toString());
self::addOpengraph('og:title', $title);
self::addOpengraph('og:see_also', 'http://www.my-domain.de/images/content/logos/opengraph.jpg', true);
i tried with:
self::addOpengraph('og:image', 'http://www.my-domain.de/images/content/logos/opengraph.jpg', true);
Hi Testcouch,
that facebook issue:
1. try using this
developers.facebook.com/tools/debug/
2. or
stackoverflow.com/questions/15134090/fb-...n-though-it-is-large
put any random number at the end of URL eg: self::addOpengraph('og:image', '
www.my-domain.de/images/content/logos/opengraph.jpg?t=12345
', true);
Regards
Albertus wrote: Hi Testcouch,
that facebook issue:
1. try using this developers.facebook.com/tools/debug/
2. or stackoverflow.com/questions/15134090/fb-...n-though-it-is-large
put any random number at the end of URL eg: self::addOpengraph('og:image', ' www.my-domain.de/images/content/logos/opengraph.jpg?t=12345 ', true);
Regards