Module: FacebookJs::App

Defined in:
lib/facebook_js/engine.rb

Class Method Summary collapse

Class Method Details

.call(env) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/facebook_js/engine.rb', line 6

def call(env)
  [
    200,
    { :"Pragma" => "public", :"Cache-Control" => "max-age=#{60*60*24*365}", :"Expires" => CGI.rfc1123_date(1.year.from_now), :"Content-Type" => "text/html" },
    ["<script src='//connect.facebook.net/#{FacebookJs.locale}/all.js'></script>"]
  ]
end