I use phonegap build to create debug version for android. I want to use facebook plugin. In Config.xml I have
<gap:plugin name="com.phonegap.plugins.facebookconnect" version="0.4.0"> <param name="APP_ID" value="509210995889450" /> <param name="APP_NAME" value="Food share" /> </gap:plugin>
I use the file facebookConnectPlugin.js which is from the official plugin Github for facebook. calling:
facebookConnectPlugin.login([], success, fail);
I get: Error: init not called with valid version Error at Object. (http://connect.facebook.net/en_US/sdk.js:37:148) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:588) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550) at window.FB.require (http://connect.facebook.net/en_US/sdk.js:15:550)