我是Steroids.js和PhoneGap的新手。我正在尝试创建需要Facebook登录的应用程序。所以,当我试图让Facebook插件正常工作时,问题就开始了。
我的设置:“steroids js”:"3.1.x“
我遵循了这个指南-- http://guides.appgyver.com/steroids/guides/phonegap_on_steroids/facebook-connect-plugin/
我已经创建了带有Facebook插件的扫描仪应用程序。
在我的iphone中下载了自定义创建的扫描仪应用程序,并尝试扫描我的应用程序的条形码,这需要Facebook登录,但它在应用程序午餐上显示我和错误:

我的index.html文件:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width">
<title>La Rocca Revolution</title>
<link rel="stylesheet" href="/vendor/topcoat/css/topcoat-mobile-light.css" />
<link rel="stylesheet" href="/stylesheets/application.css" />
<script src="/javascripts/onerror.js"></script>
<script src="/javascripts/console.log.js"></script>
<script src="http://localhost/cordova.js"></script>
<script src="/components/steroids-js/steroids.js"></script>
<script src="http://localhost/cdv-plugin-fb-connect.js"></script>
<script src="http://localhost/facebook-js-sdk.js"></script>
<script src="/components/jquery/jquery.js"></script>
<script src="/javascripts/application.js"></script>
</head>
<body>
<div id="home">
<div class="container">
<div id="login-menu">
<a href="javascript:void(0);" ontouchend="login()" id="facebook-login">Login With Facebook</a>
<div id="divider">or</div>
<a href="javascript:void(0);" ontouchend="simpleLogin()" id="simple-login">Simple Login</a>
</div>
<div id="simple-login-menu">
<input type="text" placeholder="First name" name="fname" id="fname">
<input type="text" placeholder="Last name" name="lname" id="lname">
<input type="email" placeholder="E-mail" name="email" id="email">
<a href="javascript:void(0);" ontouchend="addToGuestList()" id="add-to-guestlist">Add to guestlist</a>
</div>
</div>
</div>
</body>
</html>我的application.js文件:
FB.init({
appId: 1376384525959378,
nativeInterface: CDV.FB
})
function login() {
FB.login(function(response) {
if (response.session) {
FB.api('/me', function(response) {
alert('Good to see you, ' + response.name + '.');
});
} else {
console.log('User cancelled login or did not fully authorize.');
}
});
}我的扫描仪steroids.js云设置:

我的Facebook应用程序设置:

发布于 2014-06-02 12:45:26
正如链接本身所说的那样
支持类固醇的使用官方Facebook插件的方式是使用类固醇插件。要在不使用Facebook插件的情况下使用Facebook插件,请参考该插件的GitHub页面上的文档,但请注意,我们只通过类固醇Facebook插件为使用Facebook插件的用户提供支持。
您现在必须使用他们的paid addons。
https://stackoverflow.com/questions/21420473
复制相似问题