Topic-icon Conflict appid with K2

Active Subscriptions:

None
14 years 5 months ago #17382 by JB_Walton
Hi,

I use K2 on my Joomla 1.7 site.
I also installed JFBConnect to login and integrate with facebook.

I setup K2 to show the facebook like/share buttons.
I don't show the social buttons for JFBConnect on the K2 pages.

When I try to login from a "K2-page" I get an error.
Logging in from other Joomla content pages works fine.

Analyzing the problem:
It seems that there are two app-id's, when looking at the source.
Does K2 have it's own appid for this?
When disabling the K2-like button and enabling the JFBConnect like button solves the problem.

But I'ld like to do it the other way, as the K2 social FB button displayes better, together with Google+ and Tweet.

Any idea how I could disable the K2 appid.
Or maybe another solution?

Kind regards,

Jan
The topic has been locked.
Support Specialist
14 years 5 months ago #17398 by alzander
Replied by alzander on topic Conflict appid with K2
Jan,
As far as I know, K2 doesn't have it's own app-id setting. However, they do re-include the Facebook Javascript API in a way that conflicts with Facebook's requirements for the Login Button. You can still use the K2 social buttons, but you'd need to remove their inclusion of the "all.js" file into the HTML. I don't know how to do that offhand though, but can try to look into it over the next few days if you need.

If there is indeed a 2nd FB.init call on the page using an App ID, that would also need to be cleared up.

Hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 5 months ago #17403 by JB_Walton
Replied by JB_Walton on topic Conflict appid with K2
Hi,

Thanks.

I searched a little further and found something in the K2 forum:
http:// Social buttons languagegetk2.org/community/New-to-K2-Ask-here-first!/3065-Social-buttons-language

It's not the same, but i saw the same appid as i saw in the errormessage from Facebook.
And I had the same language problem as described in that topic.

After that I searched and found it in components/com_k2/templates/default/item.php
There I changed the language setting to nl-NL (Dutch =))
I changed the 177.... id into my own appid and it worked.

Language was Dutch and I could login from the k2 pages.

Just wanted to let you know as maybe someone else will jump into the same issue.

Kind Regards,
Jan
The topic has been locked.
Support Specialist
14 years 5 months ago #17406 by alzander
Replied by alzander on topic Conflict appid with K2
Jan,
Glad to hear it worked for you. In all honesty, if those lines you changed were the #xfbml&appid=xxx type lines, you'd probably be best removing them altogether. JFBConnect automatically includes the Facebook Javascript library on all pages, so it's not necessary to do again. However, if it works for you, it works. We would recommend trying in multiple browsers, just in case, as well.

Anyways, glad that got you going, and should you need anything else, just let us know!
Alex
The topic has been locked.