When I properly enter my Facebook App credentials, such as API Key, Secret, etc. I get the error: Unable to get application properties. Confirm both apikey and secret.

My App is not submitted to the Application Directory, and has no Sample Code. I'm not sure if there're steps I'm missing, or if I've got the wrong permissions. I'm a newer Drupal user, and am not familiar with advanced settings just yet. I do know I installed the Facebook module correctly, with the right permissions, and I'm getting no errors about my install.

Comments

Dave Cohen’s picture

If you're using 3.x, see http://drupal.org/node/798460.

For 2.x, try clearing all browser cookies. Then log into drupal only and not facebook, and try again.

ja.pelladium’s picture

I'm using 2.0-rc2. When I tried clearing the cookies and just logging into drupal, I got the same error. Not sure what's causing the error, since the keys are correct.

dhon’s picture

I have read and followed thoroughly the README.txt and the online documentation but still I got the error message. I'm thinking if it has something to do with the server I am using because I'm trying it on my localhost using WAMP.

Dave Cohen’s picture

Don't expect anything related to modules/fb to work if your url looks like http://localhost/... You need a domain that facebook's servers can see from facebook.com

dhon’s picture

Ok. Now it's clear to me. But what if my site has a domain but not public to the web? meaning its not searchable in the internet, an intranet site for short. Can I use drupal for facebook module for this instance?

Dave Cohen’s picture

Some parts may work. For sure some features will not. I don't run it this way, and I don't recommend anyone run a facebook connect site this way. But if you're sure you want to, give it a try and let us know what happens.

Use the 3.x branch and not 2.x. 2.x requires a cross-domain receiver and 3.x does not. There may be other improvements in facebook libs in 3.x that will make more things work.

dhon’s picture

Thank you so much for your suggestions. I really appreciate it! I'll post here my updates soonest.

dhon’s picture

I have tested it with an Intranet site. It actually works! I think you can't connect to facebook if you have http://localhost... in your URL. =)