小编Bil*_*ope的帖子

在 Facebook 上使用 Firebase 身份验证

在我的 android 手机上测试期间尝试登录我的网络应用程序时,我收到以下消息:

“firebase.js:75 未捕获错误:此应用程序运行的环境不支持此操作。“location.protocol”必须是 http 或 https..”

我将我的 firebase url 添加到我的 fb 应用程序上的有效 OAuth 重定向 URI - https://.firebaseio.com/ 我在 auth 部分将我的应用程序 ID 和名称添加到 firebase。我错过了什么吗?谢谢

我在这里使用 chrome 远程调试:file:///android_asset/www/index.html#/app/people

这可能是它大惊小怪的原因吗?

var provider = new firebase.auth.FacebookAuthProvider();

console.log(provider);
  firebase.auth().signInWithPopup(provider).then(function(result) {
 // This gives you a Facebook Access Token. You can use it to access theFacebook API.
   var token = result.credential.accessToken;
// The signed-in user info.
  var user = result.user;
  console.log(user, token);
  UserService.setUser(user, token);
// ...
}).catch(function(error) {
  // Handle Errors here.
  var errorCode …
Run Code Online (Sandbox Code Playgroud)

facebook-authentication firebase firebase-authentication

5
推荐指数
1
解决办法
2939
查看次数

[!]无效的“Podfile”文件:无法找到可执行的“node”

我一直在寻找解决此错误的方法。当我运行: pod install 时,我得到: [!] Invalid Podfilefile: [!] Unable to located theexecutable node

# 来自 /Users/admin/Desktop/myapp2/myapp/ios/Podfile:85 # ------------------------------------------ ------------#

使用本机模块!#
# ------------------------------------------

System:
    OS: OS X El Capitan 10.11.6
    CPU: (2) x64 Intel(R) Core(TM)2 Duo CPU     T9600  @ 2.80GHz
    Memory: 19.69 MB / 4.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 8.9.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 5.5.1 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.5.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: X 10.11, iOS 9.3, tvOS …
Run Code Online (Sandbox Code Playgroud)

ios react-native podfile

5
推荐指数
0
解决办法
2240
查看次数