Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' of github.com:mmangino/facebooker

  • Loading branch information...
commit af2aececa88b667f6fbe1a23e5ef9d4797d3ff35 2 parents bad752d + df80a7a
Mike Mangino mmangino authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/facebooker/rails/facebook_url_rewriting.rb
2  lib/facebooker/rails/facebook_url_rewriting.rb
@@ -44,7 +44,7 @@ def can_safely_access_request_parameters?
44 44
45 45 def rewrite_url_with_facebooker(*args)
46 46 options = args.first.is_a?(Hash) ? args.first : args.last
47   - is_link_to_canvas = link_to_canvas?(@request.request_parameters, options)
  47 + is_link_to_canvas = @request.env["REQUEST_METHOD"] == "POST" && link_to_canvas?(@request.request_parameters, options)
48 48 if is_link_to_canvas && !options.has_key?(:host)
49 49 options[:host] = Facebooker.canvas_server_base
50 50 end

0 comments on commit af2aece

Please sign in to comment.
Something went wrong with that request. Please try again.