manuks / proxy

When hosted with heroku, it can be used to proxy ssl url to your fb application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

While developing a facebook page tab we have to specify ssl url of the app.

Suppose your application is

http://yourdomain.com/fb/app/
https://yourdomain.com/fb/app/ will not work in facebook if you do not have a valid ssl certificate.

For a sandbox application buying an ssl certificate is not that prcactical.

This proxy can be used in that situation.

Create an application in heroku and find its git url from the settings page. It will be like

    git@heroku.com:your-application-name.git

Then follow this steps

   git clone git@github.com:manuks/proxy.git
   git remote add heroku git@heroku.com:your-application-name.git
   git push heroku master
   heroku config:set REDIRECTHOST=yourdomain.com

This will create a nodejs application in heroku which will proxy yourdomain from an ssl domain.

You can give the following url in facebook app settings.

https://your-application-name.herokuapp.com/fb/app/

About

When hosted with heroku, it can be used to proxy ssl url to your fb application.


Languages

Language:JavaScript 100.0%