Topic-icon Like button disappears

Active Subscriptions:

None
13 years 8 months ago #26372 by activha
Installed latest version but each time that I click on like button, it shows instantly then disappear

Could you help ?

for an example try vero.site113.com at the bottom of the page
The topic has been locked.
Support Specialist
13 years 8 months ago #26379 by alzander
Replied by alzander on topic Like button disappears
Check out the URL Debug Tool below:
developers.facebook.com/tools/debug/og/o...itemlist%2Fuser%2F43

It sounds like your Facebook Application is configured for a different domain. If you use an App ID on your site, the configuration of Site URL and Domain must be right or you will get these kinds of issues. Autotune should recommend the right settings, and after you save the new settings, just run it through that Debug Tool again. Hopefully, that should fix you right up!

Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26380 by activha
Replied by activha on topic Like button disappears
Well we have in fact two domains working on the same website site113.com and activ-ha.com
I tried to set up site113.com as mobile and activ-ha.com as desktop domains on facebook since facebook would not authorize two domains

Our users would use both domains, do you have another idea to cope with this facebook limitation?

Thanks Alex
The topic has been locked.
Support Specialist
13 years 8 months ago #26386 by alzander
Replied by alzander on topic Like button disappears
You can only have one Facebook App per domain. That's a Facebook restriction. So, you'd need to get a new app for the 2nd domain if you want to split things up like that. I honestly wouldn't recommend using 2 domains as it's bad for SEO (you're splitting your content across two different sites) and with 2 apps, a user has to 'log in' to both Facebook apps and you can't share data easily between the apps. The Login with Facebook functionality likely isn't working on the 'other' site right now, if you're using that feature on it, just so you know.

There's really no way to use one app across 2 root domains. One app can be used on one domain with unlimited subdomains (so, mobile.activ-ha.com would be fine). Don't know of any way to do what you're looking to do.

Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26388 by activha
Replied by activha on topic Like button disappears
Well we dont' mind about SEO as the second domain will only be used by our users pages to refer their own pages, so it is fine to have two separate apps.

In this case, will JBFConnec deal with two apps for authentication ?

The second app would only be used by our users to log in to the website or share content.
We have for instance vero.site113.com and activ-ha.com/113/itemlist/user/43 which are the same

We just want the first url for simplicity. It's best for our users to remember and share with their clients

Can you help ?
The topic has been locked.
Support Specialist
13 years 8 months ago #26391 by alzander
Replied by alzander on topic Like button disappears
JFBConnect will only be able to let user's login on the domain that the app is setup for. If you are trying to authenticate through both domains, I can almost guarantee it won't work. It's not a JFBConnect limitation, it's a Facebook one. The Javascript that we call to perform the login for Facebook simply will deny the login if they detect that it's not occurring on the proper domain setup with the App. Again, there's no way to get around that.

For the Like button to work, on the 2nd site, you can either get a new app with the proper domain for that site setup, or don't use an App ID for that site at all. Facebook is ok (for Like buttons) with no App ID. If you use one though, it must have the same domain configured as the site the Like button is used on.

Hope that helps explain, but I think you're going to have issues with both domains as you sound like you're trying to use it.

Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26407 by activha
Replied by activha on topic Like button disappears
Well we'll try anyway :-)

Is there a way to remove all instances of JFBC when we are on the second domain ?
We have already used metamodpro to remove SClogin when on the second domain but it seems that some js files are still on the page

Jean Claude
The topic has been locked.
Support Specialist
13 years 8 months ago #26416 by alzander
Replied by alzander on topic Like button disappears
What do you mean by 'all instances'? I can probably help provide some code that, in the JFBCSystem plugin, woud prevent a lot of things from loading. However, if you want the Like button, things like the Facebook Javascript library that JFBConnect inserts in the page would still be necessary.

Let me know what you want to remove, and I'll try to help figure out the best way to do so.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 8 months ago #26419 by activha
Replied by activha on topic Like button disappears
Well I think that if we can remove all which relates to the FB application ID, it should be ok.

I can use chameleon to remove scripts by name depending on the domain or subdomain used
The topic has been locked.
Support Specialist
13 years 8 months ago #26428 by alzander
Replied by alzander on topic Like button disappears
In the /components/com_jfbconnect/libraries/facebook.php file, around line 47 in the __construct function, add this to the very end:
$this->facebookAppId = $this->configModel->getSetting('facebook_app_id');
        $this->facebookSecretKey = $this->configModel->getSetting('facebook_secret_key');
         if (strpos(JURI::base(), 'site113') !== false)
             $this->facebookAppId = '';
    }
That will disable the AppId setting and *should* prevent JFBConnect from inserting it in a few different areas of your site, but only if the domain name contains site113. Obviously, test, and let us know how that goes!

Thanks,
Alex
The topic has been locked.