- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
长话短说,我无法从入门示例应用程序 (https://developers.facebook.com/docs/samples/canvas/) 中获取 Runwithfriends 示例应用程序。
在 Google App Engine 中成功获得 hello world 后,我按照 Facebook 示例中的所有说明进行操作。但是,当转到本地主机端口 8080(入门,第 8 步)时,系统提示我出现烦人的“请更新您的安全 Canvas URL”错误;按“继续”除了再次提示我更新我的 URL 之外没有任何作用。
我读到 dev_appserver.py 不支持 SSL,所以我想这就是为什么当我将带有 SSL 的本地主机端口 8080 放在我的 Secure Canvas URL 中时,我收到 ssl_error_rx_record_too_long 错误。所以这是死胡同。
现在,我读到,作为该应用程序的管理员,我的个人安全设置可能搞砸了。所以,我尝试了一个测试用户;使用带有 SSL 的 localhost 作为 Secure Canvas URL 会弹出与以前相同的错误,但将其留空会让我进入 running with friends 主页;就在我要宣布胜利之前,我注意到刷新图标变得疯狂了,所以通过打开 Firebug ,我看到该站点正在疯狂地发送 GET 请求;我打开了查询的标题并得到了这个:
Reload the page to get source for: https://apps.facebook.com/facebook-skuiz/
只要其他 GET 请求执行其他 GET 请求...那么,您就可以练习了。
也许这是我的错误,我的 conf.py 或 app.yaml 有问题。他们在这里:
####conf.py
# Facebook Application ID and Secret.
FACEBOOK_APP_ID = 'XXX'
FACEBOOK_APP_SECRET = 'XXX'
# Canvas Page name.
FACEBOOK_CANVAS_NAME = 'facebook-skuiz'
# A random token for use with the Real-time API.
FACEBOOK_REALTIME_VERIFY_TOKEN = 'RANDOM TOKEN'
# The external URL this application is available at where the Real-time API will
# send it's pings.
EXTERNAL_HREF = 'http://facebook-skuiz.appspot.com/'
# Facebook User IDs of admins. The poor mans admin system.
ADMIN_USER_IDS = ['100002926752876']
####app.yaml
application: runwithfriends
version: 1
runtime: python
api_version: 1
handlers:
- url: /(.*\.(html|css|js|gif|jpg|png|ico))
static_files: static/\1
upload: static/.*
expiration: "1d"
secure: always
- url: .*
script: main.py
secure: always
- url: /task/.*
script: main.py
login: admin
secure: always
(我也删除了 secure: 选项,没有用)
现在,也许它真的很傻,比如文件夹结构或应用程序的名称。我希望是这样,我做错了什么,因为我不敢相信入门教程不起作用。
更新:似乎 Firefox 犯了“Continue”错误。在 Chrome 上试过,到目前为止一切顺利。我会不断更新以查看进展情况。
最佳答案
Facebook 根据用户帐户中“安全浏览”设置的配置方式来确定是使用您应用的普通 URL 还是安全 URL。听起来您为您的帐户启用了安全浏览,因此 Facebook 正在创建一个应用程序 iframe,它想要导航到该应用程序的安全 URL。在您的用户帐户/隐私设置中禁用安全浏览,您应该能够连接到在本地主机上运行的应用引擎开发服务器。
关于facebook - 无法在本地主机中开始使用 Google App Engine(runwithfriends 示例),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7378710/
Google Cloud Compute 中的 Google Compute Engine、App Engine 和 Container Engine 之间的实际区别是什么?什么时候使用什么? 有什么
我有一个在 Google App Engine 中运行的应用程序,它访问在 Google Compute Engine 中的机器上运行的服务。 Google App Engine 应用程序是该服务唯一
我们正在谷歌云中构建一个应用程序。我们使用 App Engine 作为前端,使用 Compute Engine 作为后端。在这些 Compute Engine 实例上,我正在运行一个接受特定“命令”消
我有一个现有的 GAE 应用程序(我们称之为应用程序 A)正在运行的情况,但由于非技术原因无法修改。当用户迁移到新的客户端版本时,我们需要将他们的数据从应用程序 A 迁移到新的 GAE 应用程序(我称
我正在尝试发现 App Engine 上的其他已部署服务。类似于 this文章建议。 我的代码是这样的: import ( "fmt" "net/http" "google.g
我想在我的网站上为“图像处理”事件设置服务器。如果我在 GCE 中使用“n1-standard-1”实例,GAE 中的可比功率是多少?是因为我算错了,还是同一个功率两者价格相差很大? 最佳答案 按小时
我在 Googl Compute Engine 和 Google App Engine 标准环境中的应用程序中创建了一个 VM 实例。我打算在 App Engine 中使用我的应用程序,在 Compu
我像往常一样使用 appcfg.py 更新我的应用程序,但收到一条错误消息。我试过 appcfg.py 回滚,两次尝试之间等了十分钟,但我仍然收到相同的错误消息。我该怎么办? 无法对 apps/dev
我想在 Google Compute Engine 上放置一个 Redis 服务器,并通过 AppEngine 的套接字支持与其对话。唯一的问题是似乎没有特定的防火墙规则说“此 AppEngine 应
我想知道 App Engine 和 Compute Engine 之间有什么区别。任何人都可以向我解释其中的区别吗? 最佳答案 App Engine 是一种平台即服务。这意味着您只需部署代码,平台会为
我正在编写一个在 App Engine 的 Go 运行时上运行的 Go 应用程序。 我注意到几乎所有使用 App Engine 服务(例如 Datastore、Mail 甚至 Capabilities
是否有人有在 Grid Engine/Sun Grid Engine/Son of Grid Engine 上运行 Docker 的经验,并且能够 monitor the resource used
我读了很多论坛,因为 grails app-engine 插件多年来没有更新,所以不可能将 grails 应用程序部署到谷歌应用程序引擎。当我准备放弃时,我发现使用 intellij 部署项目是可能的
当前设置, 运行 Windows Server 2012 (GCE Server 2012) 的谷歌计算引擎 运行 Debian Wheezy(GCE 服务器 Wheezy)的 Google 计算引擎
特定于基于 Docker 的部署,这两者之间有什么区别?由于 Google App Engine Flexible 现在也支持基于 Dockerfile 的部署,并且它也是完全托管的服务,因此它似乎比
我相信 Google Kubernetes Engine (GKE) 在 Google Compute Engine (GCE) 上运行。那么,在服务器管理方面使用 Google Kubernetes
TLDR;关于这个问题有任何更新吗? Google App Engine communicate with Compute Engine over internal network -- 是否可以在同
我正在尝试使用 Go SDK 为 App Engine 编写应用程序,但它似乎与单元测试有一种有趣的关系。人有written libraries左右this original, outdated一组工
在 App Engine 中,我想对在同一个 Google 云项目中创建的 Compute Engine 实例上运行的网络服务器进行 http fetch 调用,我想知道是否可以在不启用的情况下对实例
在编写 Go App Engine 标准应用程序时,过去的情况是您必须使用 App Engine SDK访问数据存储。然而,最近(从 Go 1.11 开始?),如果你只使用 Cloud Datasto
我是一名优秀的程序员,十分优秀!