Guys, this still works! How hard is it to create a HTML file, copy paste the code from the OP, change 2 lines of code and upload it to your server really? It literally took me 2 min to provide you with a live working URL (just for testing), keep reading below:
1. Go to this URL:
www.inf440.byethost7.com (make sure you have JavaScript enabled)
2. The index.html file uploaded in the server has this code: (the SAME code as in the OP)
Code:
<html prefix="og: http://ogp.me/ns#">
<head>
<meta property="og:url" content="http://blackhatworld.com/" />
<script type="text/javascript">window.location = "http://google.com";</script>
</head>
</html>
3. In theory, when sharing on Facebook, the preview should be that of BHW, but when clicked it redirects to Google.
4. In practice, it's the same as in theory (no shit right?). Here is a screenshot of the URL shared in one of the fake profiles I own:
If you don't believe me, try sharing the above URL in your own profiles. It will always be live don't worry, as this is a free server I use only for testing and shit.
One reason I think this is not working for any of you guys is because perhaps the URL you are trying to scrape OG properties has been banned from FB. So try another one. Also, as another member said above, when providing the "og:url" property, all of your other properties declared after that will be OVERWRITTEN by the properties that the URL currently has (if it has).
Another TIP: Make a .htaccess redirect as well except the JavaScript one in the code, because those users that have JS disabled will NOT get redirected as it's browser-side controlled, while the .htaccess happens server-side. Here is the code of a .htaccess redirect:
Code:
//Rewrite to www
RewriteEngine on
RewriteCond %{HTTP_HOST} ^google.com[nc]
RewriteRule ^(.*)$ http://www.google.com/$1 [r=301,nc]