0

I'm using Instafeed.js to display the feed in a website, but I've read that's not advisable to let the access token in the client-side.

Is there a way I can protect this data or get the access token in a way it's not visible in the source code? What are the dangers of letting other people see my access key?

var feed = new Instafeed({
            accessToken: 'TOKEN_HERE'
}
Vinicius Coelho
  • 130
  • 2
  • 2
  • 11
  • launder it through php, calling the api with key and spitting out json or whatever from the api without the key – dandavis Mar 17 '16 at 01:35
  • 2
    There's no way to protect it if it's in the browser. If you want to protect it, you will have to move it to a server, have the browser ask your server for the data, have the server fetch the data from the feed and return it to the client. – jfriend00 Mar 17 '16 at 01:37

0 Answers0