Skip to content

Instantly share code, notes, and snippets.

@damnhandy
Created May 2, 2012 00:19
Show Gist options
  • Save damnhandy/2572570 to your computer and use it in GitHub Desktop.
Save damnhandy/2572570 to your computer and use it in GitHub Desktop.
Facebook Graph API - Places Search
RequestBuilder builder = new RequestBuilder("GET");
Request request =
builder.setUrl(
UriTemplate.fromExpression("https://graph.facebook.com/search")
.expression("{?q,type,center,distance,limit,offset,until,since,access_token}")
.set("q", "coffee")
.set("type","place")
.set("center", new float[] {37.76f,-122.427f})
.set("distance", 1000)
.set("limit", 5)
.set("offset", 10)
.set("access_token", System.getProperty("fb.access_token"))
.expand()).build();
executeRequest(createClient(), request);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment