http://www.facebook.com/add.php?api_key=[:app_id]&pages=1
localhost를 validating 하는 페북 앱설정을 우회하기 위해
127.0.0.1 pagetab.com 과 같은 식으로 etc/hosts파일을 수정해준다.
https 지원을 위해 lib 폴더 안에 server.csr 파일을 생성해준다.
bypass_ssl_verification_for_open_uri.rb 참고
facebook page tab 에서 post로 접근하기 때문에 route 설정 필요.
thin start --ssl 로 구동
protect_from_forgery with: :exception 을
protect_from_forgery with: :null_session 으로 바꿔준다.
response.headers["X-Frame-Options"] = "GOFORIT"
gem 'fb-channel-file' 설치