重定向url为facebook桌面应用程序
Redirect url for facebook desktop app
我正在尝试使用node webkit开发一个facebook桌面应用程序。我试图找到一种方法来使用facebook客户端Javascript sdk访问图形功能。我正在使用以下代码尝试连接到facebook。(https://gist.github.com/konsumer/2298cc4f8b7b0a1ee9fa file-nwfacebooklogin-js)
然而,当我给重定向URL为https://www.facebook.com/connect/login_success.html它给出了一个错误Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
我应该给什么URL,因为我不会在一个网站上托管这个
我认为这不可能。我通过在我们的服务器上打开一个新标签,在批准的域名(将其添加到facebook的"应用域")上'登录facebook'。
为了传递登录数据,我使用 打开了新选项卡var login_window = window.open(url,{
"position": "center",
"focus": true
});
然后,在该页面上,在从facebook重定向回来后,在收到访问令牌后,我保存在页面sessionsStoragee
中,并使用
login_window.window.sessionStorage.login_data
相关文章:
- 创建nw.js+流星桌面应用程序
- 如何使用HTML/CSS/JavaScript开发桌面应用程序
- 如何检索从桌面应用程序发送到Rails API的图像
- html5/JS中的java桌面应用程序gui
- Apache Cordova可以编译到传统的Windows桌面应用程序(非metro)吗
- 如何使用R语言创建桌面应用程序
- 从桌面应用程序连接到AWS MySQL数据库
- javascript桌面应用程序是如何工作的
- 将ExtJs的Web应用程序转换为桌面应用程序
- 了解网页和桌面应用程序是否在同一台计算机上启动
- 如何从现有的web应用程序代码中制作桌面应用程序
- 是否可以使用 XHTML、CSS 和 JavaScript 编写跨平台桌面应用程序
- 我可以使用 Dojo 工具包进行桌面应用程序开发吗?
- Web 应用程序作为桌面应用程序
- 在 Java 桌面应用程序中使用 CSS 和 JavaScript
- 使用 HTML、CSS 和 JS 构建桌面应用程序的替代方案
- 是否可以使用单页应用程序概念来创建独立的桌面应用程序
- 谷歌云端硬盘实时桌面应用程序
- 如何在单击按钮时将桌面应用程序导航到系统中设置的默认邮件提供程序
- 是否有适用于Windows 8 [桌面]应用程序的iOS钥匙串