diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb
index e2e109b..1c54c29 100644
--- a/app/views/galleries/show.html.erb
+++ b/app/views/galleries/show.html.erb
@@ -1,5 +1,35 @@
<%= content_for :header do %>
Fet - Fotos: <%= @gallery.name %>
+
+<%
+if @openfotoid.nil? || @openfotoid==0
+ @firstfoto= @fotos_p.first
+ picture_url=URI(root_url)
+ picture_url.path=@firstfoto.datei.url(:locale=>nil, :theme=>nil)
+set_meta_tags :og => {
+:image => picture_url.to_s,
+:title => @gallery.name.to_s,
+:type => "article",
+:url=>gallery_url(@gallery,:theme=>nil)
+}
+else
+@ofoto=Foto.find(@openfotoid)
+picture_url=URI(root_url)
+picture_url.path=@ofoto.datei.url(:locale=>nil, :theme=>nil)
+set_meta_tags :og => {
+:image => picture_url.to_s,
+:title => @gallery.name.to_s,
+:type => "article",
+:url=>gallery_foto_url(@gallery,@ofoto,:theme=>nil)
+}
+
+
+end
+%>
+
+
+
+
<% end %>