警报说使用不带绝对URL的已弃用HREF [英] Alert says using deprecated HREF without absolute URL

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

问题描述

Facebook开发人员页面中的消息警报,表明我的网站当前正在使用以下不推荐使用的功能:

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


社交插件(如按钮,类似Box )的 href 参数中没有绝对URL。该问题必须在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 这个社交插件的属性,只需在您的Facebook应用程序设置中启用 2013年7月重大更改

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.

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

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