No thumbnail on facebook when sharing item from K2
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Sun Apr 13, 2014 4:06 pm
- Reply with quote
- Report this post
Facebook is not showing K2 item thumbnail when sharing the page.
-
- Senior Boarder
- GK User
- Sun Apr 13, 2014 6:31 pm
- Reply with quote
- Report this post
Actually, no thumbnail at all !!!
-
- Senior Boarder
- teitbite
- Sun Apr 13, 2014 6:38 pm
- Reply with quote
- Report this post
Hi
Please show me the page with an example of article You are trying to post on facebook.
Please show me the page with an example of article You are trying to post on facebook.
-
- Moderator
- GK User
- Mon Apr 14, 2014 3:34 pm
- Reply with quote
- Report this post
This is quite frustrating.
I have 2 sites on same server, both with Instyle template.
One doesn't show thumbnails on facebook, other one does.
I have 2 sites on same server, both with Instyle template.
One doesn't show thumbnails on facebook, other one does.
-
- Senior Boarder
- GK User
- Mon Apr 14, 2014 5:32 pm
- Reply with quote
- Report this post
This is what I get from FB debugger
"Errors that must be fixed:
Can't download
Could not retrieve data from URL."
Any idea?
"Errors that must be fixed:
Can't download
Could not retrieve data from URL."
Any idea?
-
- Senior Boarder
- GK User
- Mon Apr 14, 2014 6:27 pm
- Reply with quote
- Report this post
A N Y B O D Y ? ? ?
-
- Senior Boarder
- teitbite
- Mon Apr 14, 2014 6:37 pm
- Reply with quote
- Report this post
Hi
Hehe. I was working on Your question when You have added both this posts. Please remember that every bump of the thread moves question to the end of the line and You need to wait longer. Luckly I have this one oppenend already.
Please edit file /html/com_k2/templates/default/item.php and on top of this file add this code:
This still may need a small fix, because I'm not sure the path without seeing it in live site.
Hehe. I was working on Your question when You have added both this posts. Please remember that every bump of the thread moves question to the end of the line and You need to wait longer. Luckly I have this one oppenend already.
Please edit file /html/com_k2/templates/default/item.php and on top of this file add this code:
- Code: Select all
<?php if( !empty($this->item->image) ): ?>
<script type="text/javascript">(function($) {$(document).ready(function() {
$('head').append('<meta property="og:image" content="<?php echo $_SERVER['HTTP_HOST'] . $this->item->image; ?>" />');
});})(jQuery)</script>
<?php endif; ?>
This still may need a small fix, because I'm not sure the path without seeing it in live site.
-
- Moderator
- GK User
- Mon Apr 14, 2014 7:25 pm
- Reply with quote
- Report this post
Nothing happened.
Do you want direct access?
Do you want direct access?
teitbite wrote:Hi
Hehe. I was working on Your question when You have added both this posts. Please remember that every bump of the thread moves question to the end of the line and You need to wait longer. Luckly I have this one oppenend already.
Please edit file /html/com_k2/templates/default/item.php and on top of this file add this code:
- Code: Select all
<?php if( !empty($this->item->image) ): ?>
<script type="text/javascript">(function($) {$(document).ready(function() {
$('head').append('<meta property="og:image" content="<?php echo $_SERVER['HTTP_HOST'] . $this->item->image; ?>" />');
});})(jQuery)</script>
<?php endif; ?>
This still may need a small fix, because I'm not sure the path without seeing it in live site.
-
- Senior Boarder
- teitbite
- Tue Apr 15, 2014 8:05 pm
- Reply with quote
- Report this post
Hi
Yes please tell me the url to Your site.
Yes please tell me the url to Your site.
-
- Moderator
- GK User
- Tue Apr 15, 2014 10:52 pm
- Reply with quote
- Report this post
-
- Senior Boarder
- teitbite
- Wed Apr 16, 2014 7:04 pm
- Reply with quote
- Report this post
Hi
I cannot see my code used on Your website, but You already have a pointing to an image on the articles I've seen:
this is codded properly. So I've checked Your site with facebook tool and I have a message that informations cannot be downloaded from Your site:
https://developers.facebook.com/tools/d ... -the-month
So I've checked our demo and it works properly. I think it has to be something from server of 3rd party extention. Do You have any plugins which should add opengraph functionality installed already ?
https://developers.facebook.com/tools/d ... rary-shoes
I cannot see my code used on Your website, but You already have a pointing to an image on the articles I've seen:
- Code: Select all
<meta property="og:image" content="http://www.total-inland-dalmatia.com/media/k2/items/cache/e4c07973dbc8eb2f7380bdedc4201087_S.jpg" />
this is codded properly. So I've checked Your site with facebook tool and I have a message that informations cannot be downloaded from Your site:
https://developers.facebook.com/tools/d ... -the-month
So I've checked our demo and it works properly. I think it has to be something from server of 3rd party extention. Do You have any plugins which should add opengraph functionality installed already ?
https://developers.facebook.com/tools/d ... rary-shoes
-
- Moderator
- teitbite
- Thu Apr 17, 2014 8:17 pm
- Reply with quote
- Report this post
Hi
I had to ask programmers for help. That's the first case I see where facebook doesn't see the site. Are You sure site is not blocked from access from some countries or other restrictions ?
I had to ask programmers for help. That's the first case I see where facebook doesn't see the site. Are You sure site is not blocked from access from some countries or other restrictions ?
-
- Moderator
- teitbite
- Thu Apr 17, 2014 8:33 pm
- Reply with quote
- Report this post
Hi
Programmers answered right away. They think it's becuase You have multiple facebook applications and each one is using a different ID. Facebook does not allow to use multiple scripts. I have disabled facebook modules in sidebar, but looks like it's not enought. Please check this tip from programmers.
Programmers answered right away. They think it's becuase You have multiple facebook applications and each one is using a different ID. Facebook does not allow to use multiple scripts. I have disabled facebook modules in sidebar, but looks like it's not enought. Please check this tip from programmers.
-
- Moderator
- GK User
- Fri Apr 18, 2014 6:05 am
- Reply with quote
- Report this post
Fixed...
There's new K2 template file attached so it might help you in a future
= = = SITE INFO = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Joomla! 3.2.3
K2 Version 2.6.8
Web Server Apache
PHP version 5.3.28
MySQL version 5.6.16
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 20M
Memory limit 128M
Open remote files (allow url fopen) Yes
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
There's new K2 template file attached so it might help you in a future
= = = SITE INFO = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Joomla! 3.2.3
K2 Version 2.6.8
Web Server Apache
PHP version 5.3.28
MySQL version 5.6.16
GD image library bundled (2.1.0 compatible)
Multibyte string support Enabled
Upload limit 20M
Memory limit 128M
Open remote files (allow url fopen) Yes
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
-
- Senior Boarder
- teitbite
- Tue Apr 22, 2014 9:29 pm
- Reply with quote
- Report this post
Hi
So You mean problem was in override to K2 file? Can You please tell me what was it exactly ? File looks as the orginal one to me.
So You mean problem was in override to K2 file? Can You please tell me what was it exactly ? File looks as the orginal one to me.
-
- Moderator
15 posts
• Page 1 of 1