我正在尝试使用Facebook登录和Firebase简单登录制作我的第一个应用程序.我在本地运行系统http://localhost:8000/.我点击登录按钮时收到的错误如下.
"应用程序配置不允许使用URL:应用程序的设置不允许使用一个或多个给定的URL.它必须与网站URL或Canvas URL匹配,或者域必须是App域之一的子域".
我已经尝试在生产的Facebook应用程序和Facebook测试应用程序上运行它,以及在我看到的其他论坛帖子后添加了URL重定向和网站平台,但没有任何对我有用.有人有什么建议吗?
facebook localhost facebook-login firebase firebasesimplelogin
我正在尝试在我的网站根目录中提供robots.txt和sitemap.xml,例如www.fakedomain.com/robots.txt.我在下面描述的设置似乎适用于localhost,但不适用于托管生产.托管生产返回空白页面.
使用firebase托管,create-react-app和react-router进行url处理
当前设置模仿: 如何使用React with Firebase托管在SPA上提供robots.txt?
文件夹结构:
public/robots.txt
public/sitemap.xml
TopApp.js
import React, { Component } from 'react';
import {
Switch,
Route,
Redirect,
} from 'react-router-dom';
import App from './App';
class TopApp extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<Switch>
<Route exact path="/" render={() => (<Redirect to={"/app"}/>)}/>
<Route path={"/app"} component={() => <App />} />
</Switch>
)
}
}
export default (TopApp);
Run Code Online (Sandbox Code Playgroud)
/src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import {
BrowserRouter, …Run Code Online (Sandbox Code Playgroud) firebase reactjs firebase-hosting react-router create-react-app