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;
}