bobolounna / restfb

Automatically exported from code.google.com/p/restfb
0 stars 0 forks source link

Facebook app for Google AppEngine running on localhost fails on graph API #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build a simple app using Eclipse/GoogleAppEngine to fetch user info (like 
user.getName() for 'me') as shown in http://restfb.com/
2. execute it in local:8888 under eclipse and access the app from Facebook.
3. calls to graph.facebook.com fails generating "HTTPS hostname invalid: 
expected 'graph.facebook.com', received '*.facebook.com'" error.
4. when you deploy it to AppEngine, it works just okay.

What is the expected output? What do you see instead?
When the facebook app is hosted in developer environment in local machine, the 
data fetch call fails. When the same app is deployed to Google App Engine, it 
works okay.

What version of the product are you using? On what operating system?
fastfb-1.6.4 & Windows

Please provide any additional information below.
This seems like the way DefaultWebRequester uses network apis under 
GoogleAppEngine SDK. It can be resolved if we are allowed to set 
FetchOptions.Builder.doNotValidateCertificate() with URLFetchService instead of 
using HTTP-apis.

Original issue reported on code.google.com by Jangwoo....@gmail.com on 15 Mar 2011 at 1:42

GoogleCodeExporter commented 8 years ago
I will probably not make any changes to RestFB itself since I don't want to 
depend on GAE APIs.  However, I think it would be a good idea to post an 
example of a custom DefaultWebRequestor that will work with GAE on Eclipse on 
http://restfb.com.  Can you post the GAE-specific code that's working for you?

Original comment by mark.a.a...@gmail.com on 15 Mar 2011 at 2:51

GoogleCodeExporter commented 8 years ago
Moving to 'unscheduled' since I don't have the time to try to repro this for 
1.6.5

Original comment by mark.a.a...@gmail.com on 2 Jul 2011 at 12:12

GoogleCodeExporter commented 8 years ago
@Jangwoo - what is your workaround for this, does it work on GAE for localhost? 
Would appreciate if you posted it here. Thanks!

Original comment by shaz...@gmail.com on 13 May 2012 at 5:31