code: def search(self, type, **args):
          
          if type not in VALID_SEARCH_TYPES:
              raise GraphAPIError(
                  "Valid types are: %s" % ", ".join(VALID_SEARCH_TYPES)
              )
  
          args["type"] = type
          return self.request(self.version + "/search/", args)
docs: https://developers.facebook.com/docs/places/search