× Joomla Facebook Connect support forum

Topic-icon 'Link' to website from Facebook not right...

Active Subscriptions:

None
13 years 6 months ago #5608 by fb_1062048477
Quick update, I have installed sh404SEF and the link posted to my facebook wall when I just use JFBCLike is still not linking back to the correct 'Like' page on my website, but it now seems to work if I include the url= parameter.
The topic has been locked.
Support Specialist
13 years 6 months ago #5620 by alzander
We think we've found an issue with the social plugin that isn't recognizing non-SEF URLs properly. It could cause issues with SEF issues too, depending on your server and Joomla configuration. We're hoping to have an updated plugin out soon (by/on this weekend) to resolve this issue... if it's what we think it is.

Sorry for the inconvenience, and thanks for your patience.
The topic has been locked.
Support Specialist
13 years 6 months ago #5625 by mel
A new version of the JFBCSocial plugin is available for download now. It should fix the following issues:

1) We were not using the query string for non-SEF URL's for JFBCLike, so the URL was incorrectly always the base URL.
2) Also when using non-SEF URL's, we were incorrectly splitting up the passed in URL value for JFBCLike and the LinkToShare value for JFBCShare.

Please let us know if you continue to have any other problems with the URLs.
The topic has been locked.
Active Subscriptions:

None
13 years 6 months ago #5626 by fb_1062048477
Hi Mel, and thanks for the quick update. I have installed the new plugin and still get the same results, although the generated code is now different.
SEF enabled, I insert {.JFBCLike.} (without dots) into the article and it posts a completely random image (expected as explained above) and root level url back to my site on my FB wall. The generated code is different now however:
<div id="jfbclike"><fb:like href="http://www.swindonacademyofdance.co.uk/index.php?view=article&id=64&task=edit&ret=aHR0cDovL3d3dy5zd2luZG9uYWNhZGVteW9mZGFuY2UuY28udWsv&option=com_content&Itemid=1"></fb:like></div>

Strange! Any ideas?

Update: I added {.JFBCLike. url=http://www.swindonacademyofdance.co.uk/news/latest/charity-event-oct-2010.html} and it links correctly back to the article using the correct meta data/description. The generated code is below:
<div id="jfbclike"><fb:like href="http://www.swindonacademyofdance.co.uk/news/latest/charity-event-oct-2010.html"></fb:like></div>
The topic has been locked.
Support Specialist
13 years 6 months ago #5627 by mel
It seems that the link generated is an edit link to your article, which is very strange. If you're comfortable, can you PM us super-admin access to your site temporarily, so that we can look into it more?
The topic has been locked.
Active Subscriptions:

None
13 years 6 months ago #5628 by fb_1062048477
Sure, of course - sent. Feel free to share with the other dev's.
The topic has been locked.
Support Specialist
13 years 6 months ago #5632 by alzander
Howdy! Your issue is confounding us, which makes it fun for all. To recap some PMs between us (in case anyone else is experiencing this), we were able to insert the JFBCLike tag (with no url) into your article and it worked for us, but for you, you were getting a weird link that seemed to be the edit link for the article. This only worked properly after we updated to the newly release 3.0.3 plugin released today.

Could you please try the following since now, we can't reproduce the problem:
1) Try on a different article - Facebook caches some information about pages that are Liked for 24h. It shouldn't be on a per-user basis, but it's possible that that page (temporarily) is not going to work perfect.
2) Can you try that page (or another) with a different Facebook account?
3) Can you try with a completely separate browser?

Finally, if you're really looking to get your investigation badge, try loading up the HTML of the pages (like you've been doing) to see if the 'like href=' link is proper or if there's some relationship between the 'wrong' links that might help us narrow it down.

Anyways, we'll obviously keep working to get to the bottom of it. Good progress today with the updated plugin, but possibly more to go. Thanks for your patience!
The topic has been locked.
Active Subscriptions:

None
13 years 6 months ago #5639 by fb_1062048477
Hi again, and thanks for the continued support.
I just tried a different article on the front page, edited from the frontend, added just the {.JFBCLike.} tag and it is creating a link to the root still. It is also linking to the other 'Like' on the frontpage, so when I unlike it also unlikes the other frontpage article. HTML code suggests its still creating the edit url:
<div id="jfbclike"><fb:like href="http://www.swindonacademyofdance.co.uk/index.php?view=article&id=27&task=edit&ret=aHR0cDovL3d3dy5zd2luZG9uYWNhZGVteW9mZGFuY2UuY28udWsv&option=com_content&Itemid=1"></fb:like></div>

I then tried a different article, same simple {.JFBCLike.} tag, butusing the backend editor,and it works! HTML code generated:
<p align="center">{JFBCLike}</p>

In fact, if I go back to all the previously created 'like' buttons (above) and edit them in the backend, they all have the same HTML code:
<div>{JFBCLike}</div>

Did some more testing, expecting the problem to be because I am editing from the frontend but it appears I can add the {.JFBCLike.} tag via the frontend to any other article that is not published on the Frontpage and it works perfectly. I am guessing when you guys tested it was on an article that wasnt published on the frontpage? So, either there is some caching happening on the Frontpage items (I have forced a cache clean, and purge cache), or the plugin is not happy working on Frontpage items.
The topic has been locked.
Active Subscriptions:

None
13 years 6 months ago #5640 by fb_1062048477
Another update. If I add the JFBCLike to the actual article via the frontend (not via the frontpage, actually clicking through to the article) then the link works fine on the article. However, the frontpage Like is still linking to the root.

Hope that makes sense, I have left the Like button on my frontpage and you can click the article title to view the differences.
The topic has been locked.
Support Specialist
13 years 6 months ago #5643 by alzander
Yup, there's 2 issues here:
Like link on the home page:
The post from above describes this the best:
www.sourcecoast.com/forums/topic?id=1392&p=1#p5539
Basically, the Like button, when you're not using the url parameter in the tag, will always display the link for the 'current' page. If it's being shown on the home/front page, that's your link. If it's in a category view, that's your link. Etc. We are working on a content plugin for some of the widgets, and this realization of the problems with url generation is just making the release of the content plugin a higher priority.
Current Fix(es): 1) Use the url= parameter in your articles so that wherever they are displayed, the link will always be correct.
2) Use intro text and full text in your article, and use the non-url version of the JFBCLike tag. Since the intro text won't display the Like, you won't have the wrong URL. Since the full text will (on the article view only), the link will be to the correct page. You can either put the like button at the bottom of the article, or if you set "Show Intro Text" to no on the article, you can keep it at the top (but will have to duplicate the intro text into the fulltext) -- lemme know if that's confusing, and I can explain more.

When editing on the front-end, the link is wonky:
Yep, you found another bug we hadn't reasoned through. We prevent the plugin from running when you're in the admin area, so that even when you're editing an article the {} tag shows (not what we replace it with... <fb:like ... Since you're editing on the front end, what's happening is that when you open the article to edit, our plugin is replacing our tag (in the html text box) with the Facebook like markup. This is using the (current) edit link to the page. So, if you were to save again, this would be hard-coded into your page.
Fix(es): 1)For now, only edit articles from the admin area OR if editing from the front end, always replace the <fb:like ... markup with the {} JFBCLike tag.
2) We'll be updating the plugin (again) to prevent replacements of tags on certain pages or areas: Iif task=edit, on content articles for example, or possibly just if it's in a textbox at all.

Hope this book of a post helps get you going (albeit with some workarounds). Good luck, and sorry for your troubles.
The topic has been locked.