phonegap 3.0 facebook login -
i m using phonegap 3.0 , trying install below faceook login plugin: https://github.com/phonegap/phonegap-facebook-plugin
i have added following changes in config.xml file
<gap:plugin name="com.phonegap.plugins.facebookconnect"> <param name="app_id" value="[app_id]" /> <param name="app_name" value="[app_name]" />
but still when trying install plugin giving me following error: error: variable(s) missing: app_id, app_name
can tell me why error might occuring.m missing adding changes in file. thanks
it looks plugin hasn't been rewritten phonegap 3.x yet. here issue on github project people discussing it: https://github.com/phonegap/phonegap-facebook-plugin/issues/343
and here fixed android part of code work phonegap 3.x: https://github.com/phonegap/phonegap-facebook-plugin/pull/348
also, here else having trouble using ios phonegap 3.x: phonegap 3.0.0 - facebook sdk 3.6 - fb plugin: facebook connect not found
on instructions in plugin readme says:
6) replace appid in new index.html file. leave quotes.
you can in examples folder , you'll see this:
document.addeventlistener('deviceready', function() { try { alert('device ready! make sure set app_id below alert.'); fb.init({ appid: "appid", nativeinterface: cdv.fb, usecacheddialogs: false }); document.getelementbyid('data').innerhtml = ""; } catch (e) { alert(e); } }, false);
hope helps
Comments
Post a Comment