Koala facebook graph API query

393 views Asked by At

How do I construct a search with koala's syntax for users by their email, city, firstname and lastname.

The syntax documentation for graph API and koala are sparse, simplistic, or cover the url string syntax, and not the koala syntax.

Can someone please help? I've dug through both API for a while, and I'm hitting a wall. Thank you.

I have something like this so far

def facebook
  @koala = Koala::Facebook::API.new(current_user.token) if user_signed_in?
  @people = Person.all
  @people.each do |p|
    result = @koala.get_object("people named \'#{p.personal_name} #{p.family_name}\' who live near #{p.city}")
  end
end
0

There are 0 answers