警报说使用不推荐使用的 HREF 没有绝对 URL [英] Alert says using deprecated HREF without absolute URL

查看:18
本文介绍了警报说使用不推荐使用的 HREF 没有绝对 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Facebook 开发者页面中的消息提醒,我的网站目前正在使用以下不推荐使用的功能:

Message alert in Facebook developer page that my site is currently using the following deprecated features:

在其 href 参数中没有绝对 URL 的社交插件(Like Button、Like Box).这必须在 2013 年 7 月之前修复.

Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter. This must be fixed before July 2013.

我猜它在谈论喜欢的 data-href 参数,但我的喜欢按钮是使用以下简单代码生成的:

I'm guessing it's talking about the data-href parameter for likes, but my like buttons are being generated with the following simple code:

data-href="http://<?php echo $_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"];?>"

在浏览器中查看的结果(查看 HTML 源代码)对我来说肯定是绝对 URL.这个警报实际上想告诉我什么?他们已经扫描了该站点并且确实存在有问题的 HREF,或者只是可能存在一些问题?

And the results when viewed in the browser (looking at the HTML source) certainly look like absolute URLs to me. What is this alert actually trying to tell me? That they've scanned the site and that there are actual HREFs that have problems, or just that there might be some?

它是否指的是其他一些 HREF 参数?

Is it referring to some other HREF parameter?

推荐答案

如果你在这个社交插件的 data-href 属性中使用绝对 url,只需启用 July 2013 Breaking Changescode> 在您的 Facebook 应用程序的设置中.

If you use absolute url in data-href attribute of this social plugin, just enable July 2013 Breaking Changes in settings of your facebook application.

这篇关于警报说使用不推荐使用的 HREF 没有绝对 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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