Facebook subscription phone book

I followed the link -

https://github.com/phonegap-build/FacebookConnect/blob/962eb0a1c07935ff813e28aa9eaa5581f2e10416/README.md

set facebook login to PhoneGap.

Then I copy the "Scrumptious" sample from the plug-in folder "com.phonegap.plugins.facebookconnect". In addition, I updated the "Application ID" in index.html.

However, I still got a log error as shown below. I am trying to ask Google, but I am still fixing this problem. Please, help.

2014-04-21 20: 02: 04.247 HelloWorld [29811: 60b] Multitasking → Device: YES, Application: YES

2014-04-21 20: 02: 04.259 HelloWorld [29811: 60b] Unlimited access to network resources

2014-04-21 20: 02: 04.614 HelloWorld [29811: 60b] Resetting plugins due to page loading.

2014-04-21 20: 02: 04.847 HelloWorld [29811: 60b] Init FacebookConnect Session

2014-04-21 20: 02: 04.848 HelloWorld [29811: 60b] ERROR: method 'init:' not defined in plugin 'org.apache.cordova.facebook.Connect

+6
source share
2 answers

I was getting this same error and could not find a fix anywhere, but it turned out that the error was related to the way I tried to use the plugin.

If you use the methods of the facebook plugin through window.facebookConnectPlugin, you will no longer see the error, and it will work fine, trying to access the methods of the plugin through the FB or CDV.FB object, you will get an error, and everything will just not work for you.

Not sure if this will help you, but you are the only person I saw sending the same error and that I circumvented it, so hopefully this will work for you too.

0
source

The init method is no longer needed because the new APIs get the application identifier from the app_id line property (in the strings.xml file) and use facebookConnectPlugin instead of FB

Please check out the changes here https://github.com/phonegap/phonegap-facebook-plugin/pull/351

0
source

All Articles