开发者

Facebook thumbnail and php redirect

开发者 https://www.devze.com 2023-01-27 02:44 出处:网络
this question is a follow up to this one. I have one server, with two domains associated with it (tactica.de and ibeat.us).

this question is a follow up to this one.

I have one server, with two domains associated with it (tactica.de and ibeat.us). Now in my root folder I put an index.php that redirects users to the appropriate page, like this:

<?php
$url = $_SERVER['H开发者_高级运维TTP_HOST'];
if (!eregi("ibeat",$url)) {
    header('Location: http://tacticadev.wordpress.com/');
}
else {
    header('Location: http://tactica.de/ibeat/index.html');
}
?>

Now when I put the URL's "www.ibeat.us/index.php", "www.tactica.de/index.php" or even just "www.tactica.de" in a facebook-status the thumbnail-pictures show appropriately. If I just add "www.ibeat.us" it doesn't even load a thumbnail, just shows the link without picture immediately! Does anybody here have experiences with this, he may share?


On http://tactica.de/ibeat/index.html the <link> tag is missplaced before the <head> tag. This malformed XHTML broke the facebook parser. Also notice that facebook cache the content of shared links for a few minutes.

0

精彩评论

暂无评论...
验证码 换一张
取 消