phonegap 1.0 android facebook plugin login fail

i'm adding facebook post button to my app (phonegap 1.0), it seems that the only method to have this working is using the plugin here: https://github.com/jos3000/phonegap-plugins/tree/master/Android/Facebook

But it's not working for me, first i saw in the log PluginManager not found, reading the docs it seems plugins are not being loaded like that anymore.

But the intent and dialog of facebook appear when calling window.plugins.facebook.authorize(appID, function(res){...}) I can see the facebook page being loaded but just after it finished the page automatically goes back with no response.

Anyboy has used succesfully this plugin??. actually the whole phonegap-plugin system seems to be very buggy... but i can't change the framework right now all the rest of the app is working.


At the end i managed to have it working by changing the Facebook authentication option in the java file, not using single sign on. By the way i do NOT recommend phonegap... it seems to me the library is still full of bugs


I've only ever had very minor issues working with PhoneGap and iOS. Most we were able to find quick workarounds to resolve.

The issue is Android itself. I'm trying to avoid supporting it until Google steps in and enforces standards on every phone device manufacturer. Otherwise, you're guaranteeing yourself a swiss cheese codebase to deal with workarounds on every single device out there.

链接地址: http://www.djcxy.com/p/53400.html

上一篇: 如何使用PhoneGap Share插件

下一篇: phonegap 1.0 android facebook插件登录失败