module ApplicationHelper

  def build_meta_tags(description: "We're a bunch of professionals and hobbyists who share a passion in programming with Ruby.", title: nil, image: path_to_image("opengraph.jpg"), page_type: :website)
    set_meta_tags :title => title,
                  :description => description,
                  :open_graph => {
      :title => title.nil? ? ENV['title'] : "#{title} | #{ENV['title']}",
      :description => description,
      :type => page_type,
      :url => url_for(:only_path => false),
      :image => image
    } 
  end

end

module ApplicationHelper

  def build_meta_tags(description: "We're a bunch of professionals and hobbyists who share a passion in programming with Ruby.", title: nil, image: path_to_image("opengraph.jpg"), page_type: :website)
    set_meta_tags :title => title,
                  :description => description,
                  :open_graph => {
      :title => title.nil? ? ENV['title'] : "#{title} | #{ENV['title']}",
      :description => description,
      :type => page_type,
      :url => url_for(:only_path => false),
      :image => [image, { :width => 200, :height => 200 }]
    } 
  end

end

Add width and height to opengraph image
Add width and height to opengraph image
