Android Phonegap getting Unfortunately <app> has stopped after installing facebook connect plugin -
i developing android phonegap app 'facebook connect' plugin.
this documentation , plugin page have used; phonegap-facebook-plugin
after installing plugin, when app launch , trigger fb login function, gets "unfortunatly has stopped" message , crashes.
i have installed before without issues. time doesn't work well.
i using cordova. 3.3.1-0.1.2 , phonegap. 3.3.0-0.19.6.
i didn't why u mention both cordova , phonegap..
but please check answer!
add below config.xml , ensure place config.xml in root folder index.html file:
 <gap:plugin name="com.phonegap.plugins.facebookconnect">  <param name="app_id" value="..." /> <param name="app_name" value="..." />  </gap:plugin>   add below of index.html file , every .html file want access plugin scripts:
 <script scr="phonegap.js"></script>  <script src="cdv-plugin-fb-connect.js"></script >   <script src="facebook-js-sdk.js"></script >    read , follow documentation located here. sure pay attention paragraph titled "facebook requirements , set-up".
once complete, upload zipped project build.phonegap.com , wait project compiled.
hope !!
you can refer question' answer also.! phonegap facebook plugin: various issues android
Comments
Post a Comment