JavaScript Instagram leaflet show photos on map

I am curently trying to make out one map to show my instagram photos.

After some research i 've found this github rep

https://github.com/turban/Leaflet.Instagram

and here you can see exactly what im trying to do.

http://turban.github.io/Leaflet.Instagram/examples/fancybox-cluster.html

So as you can see this awesome guy says that you have to change this line in the code

L.instagram('instagram_api_url_with_access_token').addTo(map);

And this is my changes to the code which is not loading my photos.

<!DOCTYPE html>
<html>
<head>
    <title>Leaflet Instagram Popup</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta property="og:image" content="route.png" />
    <link rel="stylesheet" target='_blank' href="lib/leaflet/leaflet.css" />
    <link rel="stylesheet" target='_blank' href="../dist/Leaflet.Instagram.css" />  
    <link rel="stylesheet" target='_blank' href="css/map.css" />
</head>
<body>
    <div id="map"></div>
    <script src="lib/reqwest.min.js"></script>
    <script src="lib/leaflet/leaflet.js"></script>
    <script src="../dist/Leaflet.Instagram.js"></script>    
    <script>

    var map = L.map('map', {
        maxZoom: 3
    }).fitBounds([[59.22, 5.78], [59.28,5.89]]);

    L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
            attribution: '&copy; <a target='_blank' href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        }).addTo(map);

    L.instagram('https://api.instagram.com/oauth/authorize/?client_id=51505b24ae5a47a38453a6c8e64ec102&redirect_uri=http://greekprojectara.eu/map/Leaflet.Instagram-gh-pages/examples/popup.html&response_type=03b31b104b5b42bc9e643a5fb98a1c1c'
    ).addTo(map); 

    </script>
</body>
</html>

But it doesnt show me any of my photos.

Of course i have make one app inside instagram api and i have put the correct client id and url direct. Also its the correct access token after i checked from this link

https://api.instagram.com/oauth/authorize/?client_id=51505b24ae5a47a38453a6c8e64ec102&redirect_uri=http://greekprojectara.eu/map/Leaflet.Instagram-gh-pages/examples/popup.html&response_type=code

What am i doing wrong (or can you guess anything wrong?)

Thanks!

P.S. you can see the map live at http://greekprojectara.eu/map/Leaflet.Instagram-gh-pages/examples/popup.html

P.S. 2.0 ... see it as a challenge... can you make one of your own instagram?

Answer:1

I am trying to use defaultChecked in reactjs when using map function to only one radio button. But How can I acomplish it? {colors.map((color, index) => { return ( <label ...

I am trying to use defaultChecked in reactjs when using map function to only one radio button. But How can I acomplish it? {colors.map((color, index) => { return ( <label ...

How to normal resize & drag UI Dialog in scrolled window/area? Is top/left correction of Dialog really necessary? (how to correct coordinates that both works) How about fixing Dialog? What ...

How to normal resize & drag UI Dialog in scrolled window/area? Is top/left correction of Dialog really necessary? (how to correct coordinates that both works) How about fixing Dialog? What ...

I have a React app which is at http://localhost:3000/ and Laravel API is at http://localhost/blog/public/api/ I get the following error Access to fetch at 'http://localhost/blog/public/api/auth/...

I have a React app which is at http://localhost:3000/ and Laravel API is at http://localhost/blog/public/api/ I get the following error Access to fetch at 'http://localhost/blog/public/api/auth/...

  1. cors issue with localhost
  2. cors issue with post request
  3. cors issue with axios
  4. cors issue with iframe
  5. cors issue with chrome
  6. cors issue with https
  7. cors issue with fetch api
  8. cors issue with fetch
  9. cors issue with fonts
  10. cors issue with spring boot
  11. cors issue with react
  12. cors issue with api
  13. cors issue with spring security
  14. cors issue with ajax
  15. cors issue with xmlhttprequest
  16. cors issue with weblogic
  17. cors issue with web api
  18. cors issue with socket
  19. cors issue with node
  20. cors issue with express

I have some basic html below, and for some reason it's not recognizing the js file I linked in the script tag. Am I linking it incorrectly in some way?: <html> <head> <link rel="...

I have some basic html below, and for some reason it's not recognizing the js file I linked in the script tag. Am I linking it incorrectly in some way?: <html> <head> <link rel="...

  1. html isnan
  2. html isn't a programming language
  3. html isn't done
  4. html isnull
  5. html isnumber
  6. html isnumeric
  7. html insert image
  8. html isn't working
  9. html isn't centered
  10. what is html
  11. isnan html javascript
  12. html image isn't showing up
  13. html page isn't scrolling
  14. html string isnullorempty
  15. html link isn't working
  16. angular html isnan
  17. html javascript isnumeric
  18. html picture isn't showing
  19. is_numeric php html
  20. why isn't html a programming language