Closed garrettr closed 7 years ago
LGTM for da marge
@msheiny confirmed working Twitter cards. @garrettr can you test with Facebook and confirm that works? (Neither @msheiny nor I have accounts.)
From the Facebook Card Validator, there are 2 issues that should be fixed:
I think we don't have to fix the "Facebook App ID" before launch. I'm not really sure what it's for and we don't have one for our main site.
Working on fixing the image size issue now.
Exporting SVG to PNG turned out to be surprisingly difficult! I tried a bunch of the techniques recommended in this superuser thread, with limited success.
Conversion via ImageMagick was always unsatisfactory: the results would be missing color, or other essential components of the design. This persisted even after I reinstalled ImageMagick with rsvg support. rsvg-export
did not work either.
I finally had success with https://github.com/shakiba/svgexport (which uses Chrome, via PhantomJS, to render the SVG under the hood).
@msheiny Deploy this ish so we can do a final check of the social sharing for Twitter and Facebook? I merged master into this branch so you shouldn't regress anything by deploying this.
Ok, I still think the logo looks a little less than 100% in the Twitter and Facebook share previews: it's still a little fuzzy/low-rez for my tastes (try comparing it to the Twitter card for https://freedom.press, which is a super high-rez photo). However, I think this is good enough for now. This is ready to merge!
Basic support for Twitter Cards and Open Graph tags.