You are required to register before you can post. This is via a custom verification system. Please post any problems you are encountering here and I`ll do my best to respond as soon as I can. Please note that a reply WILL be posted to all queries, so do not double post. There are no guarantees
when a reply will appear but I do my best to answer all within 3/4 days max. Bumping topics won`t make the slightest difference.
IMPORTANT: Posts in English ONLY please, thank you! Any other languages will be ignored and your message deleted.
SEARCH: Use the search option to see if your question has been answered on the forum before. Or check the relevant script docs.
CUSTOMER: If you have purchased a commercial version of any of my software, using the contact option at the licence centre ensures a faster response.
AUTO DELETION: Accounts older than 5 days, with no posts or topics, are automatically deleted. Only register if you are thinking of posting.
PRIVATE MESSAGES: Private messages are currently disabled.
LINKS: Any links posted are 'NOFOLLOW' and will not be picked up by search engines.
You are not logged in.
Pages: 1
Hello,
I have a problem using the sef url, if i try to share a recipe on facebook no images appair, if i turn off the sef url all return normal.
Testing the page trough the Facebook debug tool (http://developers.facebook.com/tools/debug), when the sef url is turned on, the path of images is wrong, eg.
www.site.ext/templates/images/digits/0.gif
become
www.site.ext/free-recipe/antipasto/recipe-name/1/templates/images/digits/0.gif
Everyone can try to turn on and off the sef url option and share a recipe on facebook, will see the same problem.
Share on facebook showing a nice recipe's image is very important, a link without image is useless.
What can i do to fix this problem?
Thanks
Last edited by Tex70 (07-09-2011 06:20:36)
Offline
The SEO option does not alter image paths. You must have a path set incorrectly.
Offline
Hi David,
Is not a path problem, look yourself in your demo site, go to http://developers.facebook.com/tools/debug and paste this or other page: http://www.maianscriptworld.com/demos/recipe/free-recipe/quiche/hot-and-spicy-wood-chippings/8/index.html, you'll look no image and this image url: http://www.maianscriptworld.com/demos/recipe/free-recipe/quiche/hot-and-spicy-wood-chippings/8/templates/images/digits/0.gif, i suppose that your path is set correct.
Let me know.
Thanks
Offline
Tested many other sites using Maiana Recipe with seo url enabled, same result, can't share recipes with images...only text, who have the seo url disabled have no problem.
The site still work fine with or without seo url, show images etc... the different is only when share on fb.
Hoping in a solution.
Offline
I`m not sure as I don`t know anything about facebook.
Offline
in templates/header.tpl.php
add before </head>
<meta property="og:image" content="http://recipe.tactic.be/templates/images/recipes/<?php echo $_GET['recipe']; ?>-1.jpg"/>
change the red part with your own website
add after <body >
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=293320014015302";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
in templates/recipe.tpl.php
look for:
echo $this->RATING_SYSTEM;
?>
add after
<span class="headRightMid">Facebook:</span>
<p class="rightP">
<span class="fb-like" data-send="true" data-layout="button_count" data-width="20" data-show-faces="false" data-action="recommend" data-font="arial"></span>
</p>
that's it
ofcourse you can place the button somewhere else
you have to upload a picture for each recipe, and it is always the first picture that will be shown on facebook
i tried with and without safe url, both seem to work
see it here: http://recipe.tactic.be/index.html
Last edited by stefaanvandamme (22-11-2011 00:53:49)
Offline
Thank you for that. ![]()
Offline
you can change the layout of the send - recommend button on this page:
http://developers.facebook.com/docs/reference/plugins/like/
maybe you have to generate the code yourself because i don't know if Id=293320014015302 in the code refers to 'my facebook'
Offline
Pages: 1