jsanahuja / InstagramFeed

Vanilla JavaScript Instagram Feed without access token. Not using the Instagram API
MIT License
318 stars 128 forks source link

Custom URLs #17

Closed zlipa closed 4 years ago

zlipa commented 4 years ago

Would it be possible to assign custom (individual) URLs to posts?

jsanahuja commented 4 years ago

Please elaborate your feature request. What do you mean? How should it work? What would it show?

zlipa commented 4 years ago

I'm trying to build a "link tree" (e.g. https://linkin.bio/sohohouse) with your code, so was wondering wether it is possible to assign unique URL's to posts.

jsanahuja commented 4 years ago

It is not possible and I don't think it is a general purpose feature. The only option is using the get_data param (See example 7 https://www.sowecms.com/demos/InstagramFeed) to get the JSON and build your custom feed. Althought, there is no way to get the data of a single post with this library.

zlipa commented 4 years ago

Understood, thanks. Another question, why is "items" limited to 12 on users?

jsanahuja commented 4 years ago

We are fetching the data from the Instagram page which displays only 12. To load more Instagram uses a private API which is not CORS accessible.