This project is read-only.
1

Closed

Facebook Comment Box URL Problem

description

When a website URL is clicked from Facebook (usually the News Feed) linking to the respective page with the comment box, Facebook attaches a query string to the URL.

The Comment Box then uses this entire URL (including the query string), and assumes that the address is an entirely different page, thus doesn't display existing comments for that page. To compound the issue, if people comment on the URL with the query string, their comments are only displayed at that queried URL, and not on the actual page.

Live example:
Normal: http://eagles.org.au/news/juniors-game-2-29th-april-2012
FB Query String: http://eagles.org.au/news/juniors-game-2-29th-april-2012?fb_comment_id=fbc_10150771214124909_22056497_10150771272999909#f2d0b16d5

From what I can tell, this is also the case with the 'Like' button also.

file attachments

Closed May 17, 2012 at 1:32 PM by Piedone
Fixed in 4bf4a5fae70b

comments

Piedone wrote May 1, 2012 at 8:17 PM

Like button seems alright, but this is indeed a problem. How nice of FB to include that piece in the url... I'll do something about that.

Piedone wrote May 1, 2012 at 8:45 PM

Could you try the latest source? It includes a fix for this.
BTW are you using Content Widgets to attach comments to pages?

justrhysism wrote May 2, 2012 at 12:49 AM

I'll install the latest now.

Yes, I have am using a widget to attach the comments.

justrhysism wrote May 2, 2012 at 1:19 AM

Okay, the update has broken it!

The provided URL to the widget is just missing the site domain; but otherwise, the URL provided to it doesn't include the query string, so it's almost there.

e.g.

I need to roll my site back as it's live.

justrhysism wrote May 2, 2012 at 1:20 AM

Oh, see attached file (why didn't it attach the file to my comment?) sigh

justrhysism wrote May 2, 2012 at 1:25 AM

Okay, I've determined that it's definitely also affecting the Like button. See my attached screen shots.

Thank you!

justrhysism wrote May 2, 2012 at 1:26 AM

Won't let me attach files without a comment...

Piedone wrote May 2, 2012 at 9:36 AM

That cleared things up regarding the like button. It uses the same, wrong url that has the facebook_comment_id param. The best solution here IMO would be to do a redirect from an action filter to the original url. What do you think?

Piedone wrote May 2, 2012 at 9:59 AM

I've added a redirecting filter, please see if it works for you. It really should this time.