Searching for places in proximity to lat lng

15 views
Skip to first unread message

el...@shinobidevs.com

unread,
Jun 2, 2014, 9:20:09 AM6/2/14
to fb_g...@googlegroups.com
Hi All,

Trying to figure out how to use FbGraph::Place.search to search using the Facebook Graph option of lat lng like in this example.

https://graph.facebook.com/search?&type=place&center=<lat>,<lng>&distance=500&access_token=<whatever>

Couldn't find anything in the documentation, only that Place inherits from Page and they both have Searchable. nothing on how to post parameters.

nov matake

unread,
Jun 2, 2014, 9:25:16 AM6/2/14
to fb_g...@googlegroups.com
FbGraph::Searchable#search(keyword, options = {})

so your case would be

FbGraph::Place.search(
  nil,
  center: '<lat>,<lng>’,
  distance: 500,
  access_token: '<whatever>'
)

2014/06/02 22:20、el...@shinobidevs.com のメール:

--
You received this message because you are subscribed to the Google Groups "FbGraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fb_graph+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elad Meidar

unread,
Jun 2, 2014, 10:10:58 AM6/2/14
to fb_g...@googlegroups.com
oh! “center”.

how did i miss that.

thanks!

You received this message because you are subscribed to a topic in the Google Groups "FbGraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fb_graph/TuZUo0q-0OE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fb_graph+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages