× Joomla Facebook Connect support forum

Topic-icon Different Behavior if Using Custom Tag

Active Subscriptions:

None
15 years 3 weeks ago #10072 by rdbean
Hi Alex,

Noticed something a bit strange today.

If the Comments feature is enabled normally for pages it works as expected with being able to comment "as a page".

However, if you use the { jfbc comments } tag, then you can't do it.

See here:

Able to Change How You Post: www.dolphinscuba.com.au/open-water-diver
Can't Change How You Post Due to using the Tag: www.dolphinscuba.com.au/event/571/night-dive/1

Any ideas?

Cheers,

Rich
The topic has been locked.
Support Specialist
15 years 3 weeks ago #10090 by alzander
Yes, we have ideas. This is unfortunately an annoying bug with Facebook, which they are being vague if they're going to fix. To fix, for now, when you use the {JFBCComments} tag, also use the href= parameter: {JFBCComments href=http://blah.com/something}

The reason is that when you use the {JFBCComments} tag by itself, we don't specify an href parameter, and Facebook rightfully assumes the comments should be on whatever page the comment is displayed on. However, Facebook recently upgraded the comment box, and if you don't specify an href parameter, for some reason, it inexplicably still uses the 'old' box. The 'old' box is the one you see where you cannot change how you post.

In the next release, we'll force the href parameter to the current URL if none is specified, but for now, the solution above is our best and easiest workaround.

Hope this helps.
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #10096 by rdbean
Awesome...thanks Alex.

Makes perfect sense. And not a problem since these are one offs for now. But pertinent since I need to promote that night dive tomorrow!

And yes it works!

Will I also need to add the URL to the like when adding as a tag?

Cheers,

Rich
The topic has been locked.
Support Specialist
15 years 3 weeks ago #10100 by alzander
Nope, the Like button has always used the URL, so Facebook doesn't have an 'old' vs a 'new' version to cause this confusion. You should be able to use {JFBCLike} without any problems. However! we'd recommend that you specify a URL to make sure that it's always the 'right' URL that someone Like's. For example, if you have SEF URLs enabled, and the night dive page is /night-dive, that page may also be reachable at /index.php?option=com_content&view=article&id=12. If someone stumbles on that non-SEF link and Like's it, that's a separate page from the SEF version, in Facebook's eyes, so you'll be splitting your Likes.

However, however! If you're using the Open Graph tags on the page to specify the URL of the page (the canonical URL), then even if on the non-SEF version, Facebook will know that the Like is intended for the SEF URL specified in the Open Graph Tag. This is why the move to the 'new' comment box is a good thing, because the comments are attached to a URL, which can be manipulated with some of the Open Graph stuff.

Finally, our JFBCContent plugin to automatically insert comments/likes into articles will always insert a URL for the page the widget is being added for, so the comment issue isn't a problem for that.. only when you use the {JFBCComment} tag or Module with no URL specified.

Whew.. confused yet?

P.S. I want to go on a night dive! Haven't been on one in 10 years, but loved it.
P.S.S. Your engageyourdivers.com site, using chrome, is showing the TapThemes template. Not sure if that's intentional, since that's for mobile stuff mainly, but thought I'd call it out.
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #10102 by rdbean
OOps! Actually I was using Chrome as test browser agent for my Android template! Goes to show...don't test and drink wine at the same time! :-) Thanks I'll change that tonight!

For the OG Tags...which takes precedence? The OG tags in the global settings or ones set by the plugins?

As for night dives...they are always awesome no matter where you are. I'm heading back to Oahu (where I lived before here) and can't wait to go on a night dive there again with a full moon on the north shore! (No Dive Light Required).

Submitted another review at the JED, we'll see if it gets through!

Cheers,

Rich
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #10103 by rdbean
Chrome Fixed!
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #10105 by rdbean
Hey I forgot to add some "stuff" to my review, do they let me edit it? (Wine again at 1 AM :-) )
The topic has been locked.
Support Specialist
15 years 3 weeks ago #10107 by alzander
Thanks for the review. Always appreciated.

You can change reviews, but unfortunately, you have to contact the JED team. It's pretty inconvenient, and we wish people could update reviews easier, but as far as we know, that's the only solution.

Regarding the OG tags, any {JFBCGraph ...} tags on a page take precedence. The ones in the admin area are defaults and used whenever per-page overrides are not set. Even for things like images, for which you can specify multiples of, if you have a default, we'll still include it, but it will be the last image tag so that the JFBCGraph image=.. tag comes first (and is used by default).

Really do want to get back into diving. Long time ago, I dove Belize (only time I've done a night dive), and about 6 years ago Cozumel, and about 3 years ago (for my honeymoon) went in Bali, which was awesome. All fun, but not nearly enough, and haven't been since. Enjoy your night dive for me!
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #10110 by rdbean
OK so...

List in order of priorities is:

On Page Stuff Specifically added in Always takes Priority
Next if nothing is set, then it's taken from the default setting. (Page URL's etc) (Note the current exceptions for Comments need an URL if added as a custom tag)
Last is what is set in the component view for JFBC /Social/Open Graph and is a "catch all" for adding additional admins etc)

Correct?

R
The topic has been locked.
Support Specialist
15 years 3 weeks ago #10125 by alzander
Correct. That's the order we've shot for, so let us know if you see different behavior. Seemed the right way to us to allow the maximum flexibility without too many headaches.. :)
The topic has been locked.