logo image when share homepage in socialnetwork

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Apr 26, 2014 7:14 am
Reply with quote
Report this post
How can I make the logo image appears, when the paste the link address in the social network? fb like for example ... but not for the article or k2 item, only if I share the homepage address.

because when i want to publish my web to a social network that appears just like this: a very different article.

Please referrals.

Thank You
User avatar
Expert Boarder

teitbite
Sat Apr 26, 2014 11:08 am
Reply with quote
Report this post
Hi

I would try to make it with some kind of script. For example something like this added to /layout/blocks/head.php

Code: Select all
<?php
if($_GET['Itemid']==ID_OF_YOUR_) :
$doc = JFactory::getDocument();
$doc->setMetaData( 'og:image', 'PATH_TO_LOGO_IMAGE' );
endif;
?>
User avatar
Moderator

GK User
Sat May 03, 2014 7:21 pm
Reply with quote
Report this post
sorry, still not working ... remain as they are.
http://it.koranopini.com/
User avatar
Expert Boarder

teitbite
Tue May 06, 2014 6:34 pm
Reply with quote
Report this post
Hi

I cannot see Your site anymore to check if this code is used. Are You sure You have put a correct ID for the page You need this to be used ?
User avatar
Moderator

GK User
Fri May 09, 2014 1:26 pm
Reply with quote
Report this post
im really sorry, I have migrated to the main domain.
http://koranopini.com/
User avatar
Expert Boarder

teitbite
Sat May 10, 2014 8:54 pm
Reply with quote
Report this post
Hi

Just as I though. Code is not present at Your site at all. Please send me an access to ftp. I'll set it myself.
User avatar
Moderator

GK User
Mon May 12, 2014 2:54 am
Reply with quote
Report this post
May I send on PM?
User avatar
Expert Boarder

teitbite
Tue May 13, 2014 8:40 pm
Reply with quote
Report this post
Hi

Yes please. Use forum PM or my mail from a footer of my every post.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.