Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alert says using deprecated HREF without absolute URL

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

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

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"];?>"

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?

Is it referring to some other HREF parameter?

like image 983
CarloTex Avatar asked Apr 29 '13 01:04

CarloTex


2 Answers

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.

like image 98
Victor Perov Avatar answered Oct 23 '22 16:10

Victor Perov


In Like Button code, data-href is href for HTML5.

like image 26
Heungsub Lee Avatar answered Oct 23 '22 15:10

Heungsub Lee