gauravjhaindia / restfb

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

Make facebook API urls configurable #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since i'm developing a mock servlet to emulate facebook responses for load 
testing without having to send request to the "real" facebook, it would be 
useful to be able to set a different url for http requests instead of, for 
instance, https://graph.facebook.com without having to recompile the library.

Original issue reported on code.google.com by rai...@gmail.com on 26 Oct 2011 at 8:35

GoogleCodeExporter commented 9 years ago
You can mock HTTP responses like this, which may be helpful for your case: 
http://restfb.com/#extensibility-and-unit-testing

...but I agree that this is a sensible request.  I will implement it.

Original comment by m...@xmog.com on 28 Oct 2011 at 2:43

GoogleCodeExporter commented 9 years ago
Heh, this is already in there!

In DefaultFacebookClient, you may override these 3 methods:

protected String getFacebookGraphEndpointUrl()
protected String getFacebookGraphVideoEndpointUrl()
protected String getFacebookReadOnlyEndpointUrl()

Original comment by m...@xmog.com on 3 Sep 2012 at 12:59