Instagram\Instagram::searchFacebookPlacesByLocation PHP Method

searchFacebookPlacesByLocation() public method

Search Facebook Places by Location
public searchFacebookPlacesByLocation ( string $latitude, string $longitude ) : PlacesFacebookSearchResponse
$latitude string Latitude
$longitude string Longitude
return Instagram\API\Response\PlacesFacebookSearchResponse
    public function searchFacebookPlacesByLocation($latitude, $longitude)
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call searchFacebookPlacesByLocation().");
        }
        $request = new PlacesFacebookSearchRequest($this);
        $request->searchByLocation($latitude, $longitude);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to searchFacebookPlacesByLocation: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }