简体   繁体   中英

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM