Bersaelor
Bersaelor

Reputation: 2577

Facebook thumbnail and php redirect

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['HTTP_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?

Upvotes: 0

Views: 1120

Answers (1)

Coquevas
Coquevas

Reputation: 609

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.

Upvotes: 2

Related Questions