DaveJohnson Phonegap / Facebook插件问题 [英] DaveJohnson Phonegap/Facebook plugin issues

查看:150
本文介绍了DaveJohnson Phonegap / Facebook插件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让facebook整合到我的cordova 1.8.1应用程序。我试过几个不同的插件,只是发现,他们不支持cordova 1.8。 DaveJohnson的插件据说支持cordova 1.8,但我有问题。我点击示例索引页中的登录按钮时出现了很多错误:

I'm try to get facebook integration into my cordova 1.8.1 application. I've tried several different plugins only to find that they don't support cordova 1.8. DaveJohnson's Plugin supposedly supports cordova 1.8 but I'm having issues with it. I'm getting a lot of errors when I click the login button that comes in the example index page:

2012-09-18 14:44:00.327 LCBCChurch[4597:707] Multi-tasking -> Device: YES, App: YES
2012-09-18 14:44:00.337 LCBCChurch[4597:707] Multi-tasking -> Device: YES, App: YES
2012-09-18 14:44:02.625 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:02.629 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:02.630 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"init","arguments":["org.apache.cordova.facebook.Connect1","appid"]}
2012-09-18 14:44:02.632 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:02.634 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:02.635 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"getLoginStatus","arguments":["org.apache.cordova.facebook.Connect2"]}
2012-09-18 14:44:16.426 LCBCChurch[4597:707] CDVPlugin class FacebookConnectPlugin (pluginName: org.apache.cordova.facebook.Connect) does not exist.
2012-09-18 14:44:16.428 LCBCChurch[4597:707] ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-09-18 14:44:16.429 LCBCChurch[4597:707] FAILED pluginJSON = {"className":"org.apache.cordova.facebook.Connect","methodName":"login","arguments":["org.apache.cordova.facebook.Connect3","email"]}

I甚至遵循视频教程到T,但我得到这些失败。有谁知道这些意味着什么,我怎么能解决它们。非常感谢您提供的任何帮助,谢谢!

I even followed a video tutorial to the T, but am getting these failures. Does anyone know what any of these mean and how I can fix them. Would truly appreciate any help you can provide, thanks!

------ UPDATE -------

------ UPDATE -------

我认为这是我加载.m和.h文件的方式。我没有使用引用,我将其添加为目标。

I think it was the way that I loaded the .m and .h files. I didn't use "references" and I added it as a target.

但现在我得到另一个错误。登录按钮启动我到Facebook,但现在我得到一个错误在fb发生错误,请稍后重试。任何想法如何解决这个问题?

However now I'm getting another error. The login button launches me over to facebook but now I get an error in fb "An error occurred. Please try again later." Any ideas how to fix that?

推荐答案

确保你添加了facebook id在eventlistener代码片段的索引html。)

Make sure you have added the facebook id at the eventlistener code snippet(right at the end of the index html.)

这篇关于DaveJohnson Phonegap / Facebook插件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆