php - Will dynamically inserted meta tags(by javascript) be detected and picked up by Twitterbot? (twitter photo card) -
Is this possible? Does TweeterBot detect and process dynamically inserted meta tags? If not, it would mean that the meta tag should be presented with a server-side script. However, the one on which I am working uses the hashtag to dynamically change the content (AJAX). What will be the best and proven approach in this environment?
Thank you for your help.
As far as I have tried, the Twitterbot crawler does not present JavaScript. In my case, I am generating a meta tag for the Twitter card only when * HTTP_USER_AGENT * is the TwitterBot code starts with something like this. Whether or not your code works by testing the URL of the Twitter card on its valeteur. Hope this help!
If you want to check (Strippo ($ _ server ['HTTP_USER_AGENT'], 'twitterbot') == incorrect) {
Comments
Post a Comment