Last Updated: February 25, 2016
·
1.366K
· shavit

Facebook Page Tab App Blank With Rails

Problem

You see a blank page in Rails Facebook Page Tab application.

Solution

Allow iframe in Rails, by overriding the default Headers

class FacebookClubsController < ApplicationController
  layout "facebook_canvas"

  after_filter :allow_iframe

  def index
  end

  private

  def allow_iframe
    response.headers["X-Frame-Options"] = "GOFORIT"
  end
end

Gist:

https://gist.github.com/shavit/5171168

http://conpanna.net