From 184475c15c27d0c5ff905be2f87552665cc0001e Mon Sep 17 00:00:00 2001 From: Daniyal Shah Date: Mon, 13 Jun 2016 14:21:38 +0500 Subject: [PATCH] removed deprecated foursquare dependency. will perform tests and commit further if necessary --- lib/instagram/client/locations.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/instagram/client/locations.rb b/lib/instagram/client/locations.rb index 0de44dba..8355f7d3 100644 --- a/lib/instagram/client/locations.rb +++ b/lib/instagram/client/locations.rb @@ -59,8 +59,8 @@ def location_search(*args) options = args.last.is_a?(Hash) ? args.pop : {} case args.size when 1 - foursquare_v2_id = args.first - response = get('locations/search', options.merge(:foursquare_v2_id => foursquare_v2_id)) + facebook_places_id = args.first # Used to locate particular location on facebook using the facebook graph api + response = get('locations/search', options.merge(:facebook_places_id => facebook_places_id)) when 2 lat, lng = args response = get('locations/search', options.merge(:lat => lat, :lng => lng))