InstagramFeed | Vanilla JavaScript Instagram Feed without access token | Plugin library
kandi X-RAY | InstagramFeed Summary
kandi X-RAY | InstagramFeed Summary
Instagram Feed without using the instagram API. Neither jQuery!. This is a vanilla JavaScript version of the original jquery.instagramFeed.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Render the styles .
- Gets the data from the cache
- Request data from RSS
- Parse the response
- Parse caption .
- read options from storage
- Set data to local storage
- eslint - disable - line callback
- escape a string
- Check if a and b have the same information
InstagramFeed Key Features
InstagramFeed Examples and Code Snippets
const options = {
accessToken: 'access...',
clientId: 'client...',
get: 'user', // popular, user
locationId: null,
resolution: 'standard_resolution', // thumbnail, low_resolution, standard_resolution
sortBy: 'none', // none, least-comment
Community Discussions
Trending Discussions on InstagramFeed
QUESTION
I'm trying to use a library called 'jquery.instagramFeed' that allows me to display images from a user's feed without using an access token. So, I've been trying to use it, but, for some reason, it's not showing me anything.
I've been researching for some weeks now, and I've tried A LOT of solutions proposed in many posts here (and in other forums as well), like these ones:
TypeError: $ is not a function when calling jQuery function
"Uncaught TypeError: $ is not a function" with instafeed
Is there still a way to fetch instagram feed without using access token now (06/2016)?
Some of them did work for me, but as soon as I refreshed the page, it disappeared again. And now, I can't make it show again, regardless of what I do.
I've been checking the developer console to see if there was something wrong, and I noticed that there it always showed me this message:
...ANSWER
Answered 2021-Apr-16 at 14:34I've attempted to re-create the feed with the code examples you've given, and it appears to work as expected
QUESTION
The first function uses dollar ($
) which loops the functions/variables ($slider
, $.instagramFeed
and slick
). At the function end, outside I created another function called $("#instagram-feed-slider .slick-slide > figcaption").each(function(e)
, which is based on @dean-meehan's code from Wrapping css class to Hashtag(#) content & At(@) content.
- I have moved the function to several parts inside the first function, but it does not work;
- I added
$(document).on
to the seconf function, but no effect; - I added different variables with
$(document).on
, but no effect; - I removed
e
fromfunction(e)
and changed from$("#instagram-feed-slider .slick-slide > figcaption")
to$(figcaption")
, no effect.
I tested with Firefox's Console's "Run", the function worked and detected the matches of at and hashtags.
Here is the minimal JavaScript code:
...ANSWER
Answered 2020-Dec-22 at 21:16.slick-slide
is a class that gets added by Slick on initialization of the carousel. So, $("#instagram-feed-slider .slick-slide > figcaption")
is returning an empty jQuery object. I'd recommend removing that class from the selector (i.e. $("#instagram-feed-slider figcaption")
, or move that code block inside the init
handler for slick.
QUESTION
I'm trying to create a carousel slider with instagram feed using jquery.instagramFeed.js with slick.js.
On codepen I inserted the instagram feed and the slick slider below to see if the slick is working.
Codepen: https://codepen.io/adrianovarlotta/pen/XWKNBqg
I changed some codes on instagram feed js, adding on line 132:
html += "
";
and closing that section on line 173:
html += "
";
Trying to make work the slick slider on instagram feed without sucess.
...ANSWER
Answered 2020-Dec-21 at 22:12How about using the instagramFeed.js
callback option to run a function which returns the instagram user data object which you can use to build a slick slider.
The returned instagramFeed data object is pretty heavy but see my demo below, which uses the returned data object and loops through all the users media items, builds a custom slides
object and stops at the media count value, here is the custom object we've made...
The max slides you can ever get for a user is 12, and for tags is 72.
QUESTION
I'm tryng to do some jQuery stuff when both instagramLoadError
and imagesLoaded
functions have been loaded.
For this I'm using if(instagramLoadError() && imagesLoaded()){})
but it's not working as expected.
I'm just starting with JS but I read something about "scope" saying that I can't target my instagramLoadError
and imagesLoaded
functions since it's not within the same scope. For this reason or another I'm still getting the "x function is not defined" error.
What should I do in this case?
...ANSWER
Answered 2020-Dec-12 at 13:48Try like this:
QUESTION
What I want: I am creating a blog using Laravel 7 for my client. He wants to add a section containing a link to his Instagram posts by something similar to a carousel, so that, when he posts a new Instagram post the website will be automatically updated.
What I did:
- I went to developers.facebook.com, created a new app and setup Instagram Basic Display where I got Instagram App Id, Secret and Name.
- Added Client OAuth Settings to be for localhost, it forced me to add ssl (https) I know this won't work, I will change it to the actual domain later, and I hope for a way to test that on localhost too. .
- I added the Instagram tester and authorized it and generated an access token.
- I installed
composer require dymantic/laravel-instagram-feed
from github-repo - I ran the command
php artisan vendor:publish
which showed me these options
ANSWER
Answered 2020-Oct-15 at 18:20If what you want to achieve is to embed your Ig feed images into a carousel I'd recommend you to use postaddic/instragram
package (https://github.com/postaddictme/instagram-php-scraper).
With this package you can easily fetch the URL of the image like so:
QUESTION
I am using new Instagram Plugin (which works without API) to show contents related to Instagram account, all is working well with the plugin except that plugin doesnt show content related icons such as cards
, videos
etc
Code doesnt add icons related to contents but i not noticed that html code generated by plugin add's CSS classes to anchor element as instagram-video
, instagram-image
, instagram-sidecar
.
based on this i though to use CSS feature to detect css of element such as .instagram_gallery > a[class*="instagram-video"]
and add relevent css to show video icon if anchor element has video class and so.
my code is not showing icon properly as as it can be seen in codepen example
Code sample
...ANSWER
Answered 2020-Jul-12 at 07:19Take a look at this CodePen https://codepen.io/DavidSanek/pen/GRoGVrV. I used pseudo-element :after
to display your icon.
QUESTION
So I got this script, that creates variables inside of a for loop, which is inside different functions. I'm talking about these variables right here (tried to shorten them down, below is the entire code)
...ANSWER
Answered 2020-Jun-17 at 12:23Use window.variableName = variableValue
instead of var variableName = variableValue
for global variables. Note that globals should be avoided as often as possible, and in newer JS it's preferable to use ES modules instead.
QUESTION
I have a issue that I want to solve but do not fully understand on how to approach it and wondering if anybody on here knows a way at all.
In my WordPress theme I have a script.js file located in a JS Folder which has a script for loading an Instagram feed on page load.
...ANSWER
Answered 2020-Apr-14 at 11:19Not sure if I understand correctly what you need but you might check the template where it loads the script.js file (using a wp_enqueue_script
function) and add another call to wp_localize_script
function using the same handler name and pass it an array of variables to be available for the javascript.
Example:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install InstagramFeed
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page