Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to test develop facebook app with google app engine on local machine

Is it possible to develop facebook using google app engine locally, without having to upload application every time I change it?

like image 692
gruszczy Avatar asked Apr 29 '11 17:04

gruszczy


People also ask

How do I use Google App Engine locally?

Running your application locallySelect File > Open to open the project you want to run. Browse to the directory containing your project. Select Tools > Cloud Code > App Engine Run on a local App Engine Standard dev server.

How do you test a Facebook app?

Creating Test AppsLoad the app that you want to clone in the App Dashboard. In the upper-left corner of the dashboard, click the app selection dropdown menu and click Create Test App. Name the app and click Create Test App.

How Google App Engine is used as platform as a service for development of any application?

App Engine is a fully managed, serverless platform for developing and hosting web applications at scale. You can choose from several popular languages, libraries, and frameworks to develop your apps, and then let App Engine take care of provisioning servers and scaling your app instances based on demand.


2 Answers

I assume you are getting API error 191 when you try to access the Facebook API from the dev appserver?

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 localhost, you can set the 'Site Domain' field in your facebook app settings to (appname).appspot.com and then edit the HOSTS file on your system.

In my environment I just entered:

127.0.0.1   devlocal.(appname).appspot.com

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

like image 196
Justin Morgan Avatar answered Oct 13 '22 23:10

Justin Morgan


You could set the Website field in your Facebook app settings to http://localhost:XXXX or http://127.0.0.1:XXXX for development and then change it over to the actual once ready for deployment. This worked well for me.

like image 43
aldrin Avatar answered Oct 13 '22 23:10

aldrin