Test twitter card and facebook with no image

I have tested two events one with an image and the
other without an image. I have put them through
the Facebook debug sharing tool as well as the
Twitter card validator and both work!
This commit is contained in:
robotscissors 2018-05-16 19:15:34 -07:00 committed by James Mason
parent d53cc3b436
commit 97b43d1a22

View file

@ -3,14 +3,15 @@
%meta{ property: "og:site_name", content: (ENV['OSEM_NAME'] || 'OSEM') }
%meta{ property: "og:description", content: @conference.description }
%meta{ property: "og:url", content: conference_url(@conference.short_title) }
%meta{ property: "twitter:card", content: "summary_large_image" }
%meta{ property: "twitter:image", content: @image_url }
%meta{ property: "twitter:title", content: (@conference.title) }
%meta{ property: "twitter:description", content: @conference.description }
- if @conference.picture?
%meta{ property: "og:image", content: @image_url }
%meta{ property: "og:image:secure_url", content: @image_url }
%meta{ property: "twitter:card", content: "summary_large_image" }
%meta{ property: "twitter:image", content: @image_url }
- else
%meta{ property: "twitter:card", content: "summary" }
= content_for :title do
= @conference.title