title: Instagram API - FACEBOOK_PLACES_ID
body: <p>I wrote a mini instagram wordpress plugin for my cafe's website that shows the photos taken there on our homepage. You can see it in action here: dem-istanbul.com</p>
  
  <p>However, since instagram now uses facebook places instead of foursquare, the location id I'm using is outdated, plus I want to add a second place as we have opened a new branch. I've been using this code to list the photos:</p>
  
  <pre><code>$result = fetchData("https://api.instagram.com/v1/locations/83910054/media/recent/?access_token={$accessToken}&amp;count=8");
  </code></pre>
  
  <p>However, when I want to add a second location, I am unable to find the location-id as it now fetches data from facebook places. This value had newly been added to the Instagram API, however I'm at a loss on using it:</p>
  
  <pre><code>https://api.instagram.com/v1/locations/search?lat=48.858844&amp;lng=2.294351&amp;access_token=ACCESS-TOKEN
  </code></pre>
  
  <p>Search for a location by geographic coordinate.</p>
  
  <p>PARAMETERS:</p>
  
  <ul>
  <li><code>DISTANCE</code>   Default is 1000m (distance=1000), max distance is 5000.</li>
  <li><code>FACEBOOK_PLACES_ID</code> Returns a location mapped off of a Facebook places id. If used, a Foursquare id and lat, lng are not required.</li>
  <li><code>FOURSQUARE_ID</code>  Returns a location mapped off of a foursquare v1 api location id. If used, you are not required to use lat and lng. Note that this method is deprecated; you should use the new foursquare IDs with V2 of their API.</li>
  <li><code>LAT</code>    Latitude of the center search coordinate. If used, lng is required.</li>
  <li><code>LNG</code>    Longitude of the center search coordinate. If used, lat is required.
  FOURSQUARE_V2_ID    Returns a location mapped off of a foursquare v2 api location id. If used, you are not required to use lat and lng.</li>
  </ul>
  
  <p>From what I understand, I should now be able to use facebook places id to list images, but I'm not sure where to get it.</p>
  
  <p>Sorry if that sounds complicated, but I'll be very happy if anyone can help me with this. Thanks very much in advance.</p>