How to test facebook application with google engine on local machine

Is it possible to develop facebook using the google engine in place, without having to download the application every time I change it?

+7
source share
3 answers

I assume you get API 191 error when trying to access Facebook API from dev application server?

API Error Code: 191 API Error Description: The specified URL is not owned by the application Error Message: redirect_uri is not owned by the application. 

If you are developing on your local host, you can set the "Site Domain" field in your Facebook application settings to (appname).appspot.com , and then edit the HOSTS on your system.

In my environment, I just entered:

 127.0.0.1 devlocal.(appname).appspot.com 

As long as the browser URL matches *.(appname).appspot.com , it will work.

+10
source

You can set the β€œWebsite” field in your Facebook application settings to http://localhost:XXXX or http://127.0.0.1:XXXX for development, and then change it to the actual one that is ready to be deployed. This worked well for me.

+2
source

I came across this question a couple of years ago and wrote a long article about how I solved it for my needs.

http://www.upwithabang.com/articles/GAE-facebook-win7.html

It covers setting up an Apache server on your laptop, and then tells Facebook and GAE to behave as if it was hosted on a production server. This solves the pain of constant downloads to test every small change.

Hope this helps someone if not a bit late.

0
source

All Articles