应用程序配置不允许给定URL [英] Given URL is not allowed by the Application configuration

查看:123
本文介绍了应用程序配置不允许给定URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Facebook javascript sdk作为Chrome扩展。由于它是一个chrome扩展,我如何与Facebook集成?这是facebook.com还是网站上的一个应用程序?

I am trying to use the Facebook javascript sdk for my chrome extension. Since it is a chrome extension how do i integrate it with facebook? is it an app on facebook.com or a website?

目前我已经将其作为网站。

Currently i have it as a website.

我的网站网址的设置是:
http:// localhost / Users / home / Documents / facebook /

my site url on the settings is: http://localhost/Users/home/Documents/facebook/

我还启用了我的mac上的网络共享。

i have also enabled web sharing on my mac.

我需要将网站域设置为好?我在这里做错什么?

do i need to set the site domain as well? what am i doing wrong here?

推荐答案

输入 http:// localhost / Users / home / Documents / facebook / 作为开发人员应用程序的网站域名:

Enter http://localhost/Users/home/Documents/facebook/ as your "Site Domain" on the developer app:

https://developers.facebook.com/apps/ {api_key} / summary

https://developers.facebook.com/apps/{api_key}/summary

替换{api_key}与你的或在 https://developers.facebook.com 上查找链接

Replace {api_key} with yours; or find a link at https://developers.facebook.com

有趣的是,Facebook可以让您在域中输入任何内容,以便它可以是一个脱机URL(如localhost或本地端口),并且在身份验证后,Facebook将重定向到它。

Interestingly enough, Facebook lets you type anything into the domain so it can be an offline URL (such as localhost or a local port) and Facebook will redirect to it after authentication.

这篇关于应用程序配置不允许给定URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆