【发布时间】:2013-08-29 12:42:24
【问题描述】:
我正在尝试使用 Facebook 对象调试器验证我的网站,但遇到以下错误:
在 URL 'http://www.example.com/latest' 类型的对象 'smallteaser:teaser' 无效,因为域 指定的应用程序 ID 不允许使用“www.example.com” '597566643589666'。
这个错误非常有意义,因为我不允许 example.com 域特定访问 Facebook 应用程序。 但我真的必须这样做吗?
我想要达到的效果类似于使用自定义域时 Tumblr 的工作方式。 例如,网站www.davidslog.com:它具有以下元标记:
<meta property="fb:app_id" content="48119224995" />
--> This is the Tumblr app ID
<meta property="og:url" content="http://www.davidslog.com/?og=1" />
--> This is a custom domain which points to a Tumblr blog
<meta property="og:type" content="tumblr-feed:tumblelog" />
--> This is a custom Tumblr object type (in namespace tumblr-feed)
如果您将其与例如域theartofnotwriting.tumblr.com 进行比较,它具有以下元数据:
<meta property="fb:app_id" content="48119224995">
--> This is the same Tumblr app ID
<meta property="og:url" content="http://theartofnotwriting.tumblr.com/?og=1">
--> This is a different domain
<meta property="og:type" content="tumblr-feed:tumblelog">
您可以清楚地看到同一个 Tumblr 应用有多个 URL,并且一切都验证正确。
那么为什么这个 Tumblr 页面验证正确而我的却没有呢?如何将 Facebook 应用配置为允许在多个域上使用?
【问题讨论】:
-
不确定它是否相关,但我注意到当我转到graph.facebook.com/210188892479733 时,它会将类型显示为网站而不是小预告片:预告片...
标签: facebook html facebook-graph-api facebook-opengraph