× Joomla Facebook Connect support forum

Topic-icon Invalid API key specified - Fanbox Related

Active Subscriptions:

None
Not sure if this directly relates to JFBConnect, but thought you might have some insight.

I've created two Apps on Facebook to use JFB. One has been up for six months, the second I added today.

Everything on the new site works fine, when I don't have the Fanbox that was on the page published. When I publish the fanbox, which gets info using the page id, I start getting a Invalid API key specified error when I try to logon using JFB.

I guess the question is whether I can use JFB while showing a Fan page that appears to be linked somehow (not sure where) to my other API.
The topic has been locked.
Support Specialist
15 years 4 months ago #6888 by alzander
You should be able to. Are you using our Fanbox module? The Fanbox requires the Javascript API, and the Javascript API can use an Application ID/Key. So, if you're using a different Fan module, it may be including the all.js javascript file from Facebook, and that double inclusion could be problematic.

Try looking at the HTML of the page with the issue and search for all.js. Make sure it only appears once. Next, look for "FB.init". This is what instantiates the library. It should be there only once as well. If it's there twice, make sure that the AppId being specified is the same.

Let us know what you find. The above is a good starting point, hopefully.
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #6982 by fb_1457713054
Actually, neither of those files were loading on my home page or any article pages. They (and the Connect with button) were showing on Component pages and when I went back to an article page after viewing a component page (but never on the home page).

I installed the Fan Box and added it to the homepage and it solved my problem, apparently on all pages. Not quite sure what the issue was.

Is there a way with the Fan Box to adjust the height as well as the width? Also, can you set the order of fans vs. feed?

Thanks.
The topic has been locked.
Support Specialist
15 years 4 months ago #7001 by alzander
That's very strange about the modules not showing, but glad it miraculously fixed itself.

As for the Fanbox, there's no way to set the order of the items displayed. That's fixed by Facebook, and they don't let you change it around to much to ensure that it's always presented similarly across sites.

As for setting the height, we released an update yesterday for JFBCFan (v3.1.1) which lets you specify the height of the module. That was requested by another user, and we can definitely see how that's beneficial to have.

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

None
15 years 4 months ago #7051 by fb_1457713054
I spoke too soon.

The scripts still don't appear to be loading on my homepage. I get the text of Login with Facebook, but no button and the Like module doesn't appear. Everything appears fine on subpages, and in Firefox, if I go to a subpage and back to home, it works fine. (It still doesn't work in IE).

This site is www.girlscoutsjs.org. I just added the Connect module to this site. It's been running for about six months on another site (on the same server) www.jerseyshoregirlscouts.com.

I have a different Facebook App running for each site. Not sure if that's good, bad or necessary, but couldn't get it working any other way. The Like Box on each page shows the same fan page.

Any suggestions regarding what to try from here?
The topic has been locked.
Support Specialist
15 years 4 months ago #7080 by alzander
You'd need different apps for each site, as long as they are at different domains, so that's common.

Looking at the page, all of a sudden, there's no references to all.js (the Facebook Javascript Library). Can you ensure that the JFBConnect System Plugin is enabled? Also, check the JFBConnect Overview page (in the admin area) and make sure that everything in the required extensions area doesn't report any errors (or 'x's).

If that doesn't work, feel free to PM me some super admin credentials for your site so we can get on and take a look.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #7086 by fb_1457713054

alzander wrote: You'd need different apps for each site, as long as they are at different domains, so that's common.

Looking at the page, all of a sudden, there's no references to all.js (the Facebook Javascript Library). Can you ensure that the JFBConnect System Plugin is enabled? Also, check the JFBConnect Overview page (in the admin area) and make sure that everything in the required extensions area doesn't report any errors (or 'x's).

If that doesn't work, feel free to PM me some super admin credentials for your site so we can get on and take a look.

Thanks!


The following four plugins are installed active.

JFBConnect - Profiles - Community Builder
System - JFBCSystem
User - JFBConnect Facebook
Authentication - JFBConnect Facebook

Under required extensions, everything looks ok. The only thing that might be unusual is that JFBConnect doesn't have anything next to it at all.

I'll PM you credentials.
The topic has been locked.
Support Specialist
15 years 4 months ago #7100 by alzander
Thanks for the credentials. I hit the green "Clean Cache" button in the top right in the admin area things started to appear as expected. If it happens again, try clearing the cache again to see if it fixes it again. Obviously, that's not a long term solution, so hopefully it won't happen.. but something to try. Do you have any additional caching extensions installed on your site? That may help us narrow down the issue if it's a specific conflict.

Thanks, and good luck!
The topic has been locked.