Jump to content

Why facebook like button to the wrong site address


Recommended Posts

Please help how do the settings.

I make like facebook button to the PS website. After the code in the insert through block html module why the results error. After appearing on the web up comes your website address but refer the link so double addresses -> http://www.yourwebsite.com/www.yourwebsite.com'>http://www.yourwebsite.com/www.yourwebsite.com should only be http://www.yourwebsite

This my web -> http://www.ejajan.com

I enter the website address into the facebook button like -->


like button facebook


the result site to the wrong address (to www.ejajan.com/www.ejajan.com) should only be http://www.ejajan.com


After a member clicks like facebook button will then appear ("error") and the link leading to the http://www.ejajan.com/www.ejajan.com should only be http://www.ejajan.com

Please help solving my problem ..

Thank you (I apologize for the bad english)

32166_8pclgFWwSoRaHd642bfh_t

Link to comment
Share on other sites

The canonical URL module is the problem.


means I have to disable that then? Since I have the same issue. And canonical URL enabled.

Which one is more important, haha! FB or CanURL? Well, possibly not really a valid question in case CanURL is really a must, then I would drop FB

Phil
Link to comment
Share on other sites

The canonical URL module is the problem.


means I have to disable that then? Since I have the same issue. And canonical URL enabled.

Which one is more important, haha! FB or CanURL? Well, possibly not really a valid question in case CanURL is really a must, then I would drop FB

Phil


The problem is caused by a bug in the Canonical URL module, but regardless of the bug, that whole canonical tag is not very good (at least not in my mind), because search engines still try to crawl them.

Check out this module http://www.prestashop.com/forums/viewthread/39736/ and a recent extension to it http://www.prestashop.com/forums/viewthread/74380/
Link to comment
Share on other sites

The canonical URL module is the problem.


any chance to correct the wrong links with the double posted http:// link which were added to some FB pages before I deinstalled the module? I mean I deinstalled the canonical URL now but there are still wrong references on some peoples FB pages. Do they all have to 'unlike' and then klick 'like' again to get this right? drives me crazy right now :-)

phil
Link to comment
Share on other sites

yes, they have to unlike it, or remove it from their feed.


hum, glad I saw this pretty early. what is interesting nonetheless, now after I even deinstalled canonical URL and tried to click the like button on one of my pages it still shows up with double domain?! Plus, FB shows the complete link whereas for other products FB shows just the product name?! see, driving me crazy.

EDIT: now the links shows correct in FB?! what's going on here? besides that fact that I cannot unlike the products/pages I chose to like before with the canonical URL module installed?! did I mention already that this is driving me crazy?
Link to comment
Share on other sites

  • 3 weeks later...

How did you solve your problem? I have the same problem. Only uninstalla the canonical module and wait?



yes, they have to unlike it, or remove it from their feed.


hum, glad I saw this pretty early. what is interesting nonetheless, now after I even deinstalled canonical URL and tried to click the like button on one of my pages it still shows up with double domain?! Plus, FB shows the complete link whereas for other products FB shows just the product name?! see, driving me crazy.

EDIT: now the links shows correct in FB?! what's going on here? besides that fact that I cannot unlike the products/pages I chose to like before with the canonical URL module installed?! did I mention already that this is driving me crazy?
Link to comment
Share on other sites

I found a temporal solution:
Hosting on hostgator, canonical off, friendly url on

I use this to create the facebook iframe link:
href=mysite.com/{$product->id}-{$product->link_rewrite}.html and never works I got mysyte.com/mysyte.com/10-productname.html
The solution for the moment was to change the code to:
href=mysite.com//{$product->id}-{$product->link_rewrite}.html

Link to comment
Share on other sites

  • 4 weeks later...

Solution, paste in facebooklike.tpl this code:



<iframe src="http://www.facebook.com/plugins/like.php?href=yoursite.com&layout=standard&show_faces=false&width=300&action=recommend&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; margin: 2pt; padding: 2pt; width:300px; height:35px;" allowTransparency="true"></iframe>



to change yoursite.com and enjoys because with this worked to you perfectly, Thanks.

Best Regards
Link to comment
Share on other sites

  • 2 weeks later...

Neither of "solutions" worked for me.
Dublicates shop url and redirects likers to 404 page.
Can beleive there is no good solution for such big problem....
I also have tried to disable canonical module completely

How come this code


<iframe src="http://www.facebook.com/plugins/like.php?href=...&layout;={$fl_layout}&show;_faces={$fl_faces}&width;={$fl_width}&font;={$fl_font}&action;={$fl_text}&colorscheme;={$fl_color}&height;={$fl_height}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:{$fl_width}px; height:{$fl_height}px;" allowTransparency="true"></iframe>



Redirects to:

yoursite.com/yoursite.com
....

Link to comment
Share on other sites

Solution, paste in facebooklike.tpl this code: (copy and paste this code) COMPLETE:


<iframe src=“http://www.facebook.com/plugins/like.php?href=yoursite.com&layout=standard&show_faces=false&width=300&action=recommend&colorscheme=light&height=35” scrolling=“no” frameborder=“0” style=“border:none; overflow:hidden; margin: 2pt; padding: 2pt; width:300px; height:35px;” allowTransparency=“true”></iframe>


to change"http://www.facebook.com/plugins/like.php?href=yoursite.com"---> yoursite.com and enjoys because with this worked to you perfectly, Thanks.

Best Regards
Link to comment
Share on other sites

While this may fix the facebook problem, this is a much worse problem, as search engines still thing the correct pages of your site are http://www.yoursite.com/www.yoursite.com and they get 404 errors on all of them.

You should remove the Canonical URL module right away (it's not very affective even when it's not buggy).

I have just release a new version for my (http://www.prestashop.com/forums/viewthread/39736/) Duplicate URL Redirect module, which fixes this issue (it redirects the bad URL to the proper one).

Link to comment
Share on other sites

  • 4 weeks later...

guys i solved this problem, i have module facebooklike and i changed facebooklike.php from

$smarty->assign(array('fl_page' => 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));



to

$smarty->assign(array('fl_page' => 'http://www.YOURURL.com//'.$_SERVER['REQUEST_URI']));



and it is working!!! dont forget to write // behind your URL and it will be working! ;) see ya :P

Link to comment
Share on other sites

guys i solved this problem, i have module facebooklike and i changed facebooklike.php from
$smarty->assign(array('fl_page' => 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']));



to

$smarty->assign(array('fl_page' => 'http://www.YOURURL.com//'.$_SERVER['REQUEST_URI']));



and it is working!!! dont forget to write // behind your URL and it will be working! ;) see ya :P



This doesn't fix the problem, as it is not the source (please read the post fully before posting incorrect information).

$_SERVER['HTTP_HOST'] will always equal your site's address.

The Canonical URL module was causing this be adding an incorrect meta tag.
Link to comment
Share on other sites

  • 4 months later...
  • 8 months later...

 

This doesn't fix the problem, as it is not the source (please read the post fully before posting incorrect information).

$_SERVER['HTTP_HOST'] will always equal your site's address.

The Canonical URL module was causing this be adding an incorrect meta tag.

 

 

Hello

Does your module will allow to use :

 

- share social network module

and

- canonical URL module

 

in same time?

Because, with canonical URL module, it's also impossible to use the Add+1 google module.

Link to comment
Share on other sites

×
×
  • Create New...