-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
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
Add Twitter Cards support #42
Comments
I'm uncertain whether including the dynamic content (e.g. project name and bounty amount) is feasible without using some server side code to generate the meta tags. I think some testing will be needed to see if twitter fully loads pages in phantomjs or something like it before reading the meta tags. I suspect they just scrape the html (edit: according to this SO answer that is the case). I also wonder if the cards will stay up-to-date with the bounty amount. URLs might only get crawled once, or rarely to generate cards. Also, since cards are a new feature the answers to these questions might change. |
Added a angular service called $metaTags to dynamically append twitter meta tags Twitter card need to be validated on https://dev.twitter.com/docs/cards/validation/validator with @bountysource twitter account
@nathanathan is right. I just ran a quick test to confirm this. My HTML looked like this:
And then I used jQuery to populate the meta tag title:
After uploading the page, I tried validating it using the Twitter Card Validator and this is what came back: Without some sort of server-side pre-population this doesn't seem possible at all. =\ |
Hey |
Closing this issue, as it's a backend task that shouldn't be on the frontend issue tracker. Thanks everyone! |
Add Twitter Cards support to:
The text was updated successfully, but these errors were encountered: