Maian Script World on Facebook Maian Script World on Twitter Maian Script World - Latest News Tutorial Videos Maian Script World on LinkedIn


Please Read

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.

#1 07-09-2011 06:13:22

Tex70
Members
Registered: 07-09-2011
Posts: 3

Sef Url and Facebook Share Button

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

#2 07-09-2011 06:24:59

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

The SEO option does not alter image paths. You must have a path set incorrectly.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#3 07-09-2011 06:58:09

Tex70
Members
Registered: 07-09-2011
Posts: 3

Re: Sef Url and Facebook Share Button

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

#4 07-09-2011 07:38:28

Tex70
Members
Registered: 07-09-2011
Posts: 3

Re: Sef Url and Facebook Share Button

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

#5 05-10-2011 11:25:37

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

I`m not sure as I don`t know anything about facebook.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#6 22-11-2011 00:40:22

stefaanvandamme
Members
From: Eaton; Ohio
Registered: 21-11-2011
Posts: 2

Re: Sef Url and Facebook Share Button

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

#7 23-11-2011 22:56:19

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

Thank you for that. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#8 24-11-2011 16:51:02

stefaanvandamme
Members
From: Eaton; Ohio
Registered: 21-11-2011
Posts: 2

Re: Sef Url and Facebook Share Button

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

#9 23-08-2013 17:55:52

conceptcrew
Members
Registered: 23-08-2013
Posts: 1

Re: Sef Url and Facebook Share Button

Thank you for this. It seems to be working

http://www.theconceptcrew.com/?p=recipe&recipe=4

Offline

#10 01-09-2013 09:55:35

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

Yep, looks good. smile


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#11 27-10-2014 20:01:39

jimbo51
Members
Registered: 27-10-2014
Posts: 3

Re: Sef Url and Facebook Share Button

on my site www.recipesrus.co.uk if I try to share a recipe via Facebook by clicking on the button I get 403 Forbidden can any one advise please. Jim

Offline

#12 28-10-2014 02:34:16

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

Hi Jim,

That code is nothing to do with Maian Recipe, you need to contact the code developers.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

#13 28-10-2014 11:29:12

jimbo51
Members
Registered: 27-10-2014
Posts: 3

Re: Sef Url and Facebook Share Button

I did'nt think it was recipe script had a feeling it was facebook script. Oh well back to the drawing board. lol

Offline

#14 28-10-2014 13:49:29

jimbo51
Members
Registered: 27-10-2014
Posts: 3

Re: Sef Url and Facebook Share Button

jimbo51 wrote:

I did'nt think it was recipe script had a feeling it was facebook script. Oh well back to the drawing board. lol

Sorted it now

Offline

#15 30-10-2014 02:24:36

msworld
Administrator
From: United Kingdom (Great Britain)
Registered: 09-05-2006
Posts: 7,643

Re: Sef Url and Facebook Share Button

Thanks Jim, glad you got it working.


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
David Ian Bennett - Lead Developer
www.maianscriptworld.co.uk

Offline

Board footer

2Checkout.com is an authorized reseller of goods and services provided by Maian Script World.© 2003-2014 David Ian Bennett. All Rights Reserved | Forum: FluxBB

Privacy Policy | Refund Policy