scottmac / opengraph

Helper class for accessing the OpenGraph Protocol
463 stars 151 forks source link

Use the facebook user-agent instead of $_SERVER #24

Closed martinstuecklschwaiger closed 2 years ago

martinstuecklschwaiger commented 10 years ago

The $_SERVER globals may not be present (e.g. when using cronjobs, etc.). Using "facebookexternalhit" scraped pages will behave the same as to the original facebook scraper