searchByQuery() public method

Search Places by Query
public searchByQuery ( $query )
$query string Search Query
 /**
  *
  * Search Facebook Places
  *
  * @param string $query Place to Search for
  * @return API\Response\PlacesFacebookSearchResponse
  * @throws Exception
  */
 public function searchFacebookPlaces($query)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call searchFacebookPlaces().");
     }
     $request = new PlacesFacebookSearchRequest($this);
     $request->searchByQuery($query);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to searchFacebookPlaces: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
 /**
  *
  * Search Facebook Places
  *
  * @param string $query Place to Search for
  * @return API\Response\PlacesFacebookSearchResponse
  * @throws Exception
  */
 public function searchFacebookPlaces($query)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call searchFacebookPlaces().");
     }
     $request = new PlacesFacebookSearchRequest($this);
     $request->searchByQuery($query);
     $response = $request->execute();
     return $response;
 }