Created
June 16, 2012 20:55
-
-
Save muex/2942490 to your computer and use it in GitHub Desktop.
makes page valid with opengraph tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Put this in <head> /* | |
<?php | |
function is_facebook() { | |
if(!(stristr($_SERVER["HTTP_USER_AGENT"],'facebook') ===FALSE)) | |
return true; | |
} | |
if(is_facebook()) { | |
OpenGraph Data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment