We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im trying to put code to recognize facebook user agent, but im dump about php. Could someone help me? https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content/
facebookexternalhit/1.0 facebookexternalhit/1.1
The text was updated successfully, but these errors were encountered:
You could probably go with something like this:
function filterFacebookBot(array &$userAgent) { if('facebookexternalhit' === $userAgent['browser_name']) { $userAgent['browser_name'] = 'facebookbot'; } } ///$ua = new .... $ua -> addFilter('filterFacebookBot');
It's completely untested, but should be close.
Sorry, something went wrong.
No branches or pull requests
Im trying to put code to recognize facebook user agent, but im dump about php. Could someone help me?
https://developers.facebook.com/docs/opengraph/howtos/maximizing-distribution-media-content/
facebookexternalhit/1.0
facebookexternalhit/1.1
The text was updated successfully, but these errors were encountered: