diff --git a/include/opengraph.php b/include/opengraph.php index ab1c90e57..2d72ffca1 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -56,9 +56,13 @@ $ogdesc = sprintf( t('This is the home page of %s.'), $channel['channel_name']); } } + + if(! isset($ogimage)) + $ogimage = $channel['xchan_photo_l']; App::$page['htmlhead'] .= '' . "\r\n"; - App::$page['htmlhead'] .= '' . "\r\n"; + App::$page['htmlhead'] .= '' . "\r\n"; + App::$page['htmlhead'] .= '' . "\r\n"; App::$page['htmlhead'] .= '' . "\r\n"; App::$page['htmlhead'] .= '' . "\r\n";