How can I determine if some of the Facebook traffic is?

I'm trying to get their meta tags for specific pages, and for that I need to cheat facebook reading another title.

How can I determine if an infapse user is a Facebook spider / meta tag crawler?

+4
source share
1 answer

the variable $_SERVER['HTTP_USER_AGENT'] informs about this. Usually this is something like this facebookexternalhit/1.0 ( http://www.facebook.com/externalhit _uatext.php) , if it is facebook, reading your site

+4
source

All Articles