简体   繁体   English

phonegap 1.0 android facebook 插件登录失败

[英]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我正在将 facebook 发布按钮添加到我的应用程序(phonegap 1.0),似乎让这个工作的唯一方法是在这里使用插件: 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.但这对我不起作用,首先我在日志中看到 PluginManager not found,阅读文档似乎插件不再像那样加载了。

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. 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回复。

Anyboy has used succesfully this plugin??. Anyboy 成功使用了这个插件??? 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.实际上,整个 phonegap-plugin 系统似乎有很多错误......但我现在无法更改框架,应用程序的所有 rest 都在工作。

At the end i managed to have it working by changing the Facebook authentication option in the java file, not using single sign on.最后,我设法通过更改 java 文件中的 Facebook 身份验证选项来使其工作,而不是使用单点登录。 By the way i do NOT recommend phonegap... it seems to me the library is still full of bugs顺便说一句,我推荐 phonegap ......在我看来,图书馆仍然充满了错误

I've only ever had very minor issues working with PhoneGap and iOS.在使用 PhoneGap 和 iOS 时,我只遇到过非常小的问题。 Most we were able to find quick workarounds to resolve.大多数我们能够找到快速的解决方法来解决。

The issue is Android itself.问题是 Android 本身。 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.否则,您将保证自己拥有一个瑞士奶酪代码库,可以处理每台设备上的变通方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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