Phonegap 3.0 Facebook connect invalid app id

I've installed the Facebook connect plugin with plugman and everything seems to be working. I use the following code to login with Facebook and get user details:

var fbLoginSuccess = function(userData) {
    alert("UserInfo: " + JSON.stringify(userData));
}
facebookConnectPlugin.login(["basic_info"], fbLoginSuccess, function(error) {
    alert("" + error)
});

I run this piece of code inside my phonegap onDeviceReady callback, when I start the application in my iPhone simulator it goes directly to the Facebook web page but gives me an error: Invalid app ID. Can anyone help me out?

Answers


your hashkey is incorrect in facebook developer app.

keytool -exportcert -alias YourAppName -keystore /Dekstop/YourAppNameKeyStore | openssl sha1 -binary | openssl base64

password: android


Need Your Help

Make tables from different databases match each other

sql database sql-update insert-update sql-insert

I am trying to update a table so that all values become identical to another table on a different database. I can do it with an insert command but not an update command.

css - descendant child element clipped by parent element

html css

In this WordPress site, I am trying to get the: