Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INSTAFEED.JS HASHTAG FILTERING #751

Open
HeterLaron opened this issue Mar 29, 2023 · 2 comments
Open

INSTAFEED.JS HASHTAG FILTERING #751

HeterLaron opened this issue Mar 29, 2023 · 2 comments

Comments

@HeterLaron
Copy link

HeterLaron commented Mar 29, 2023

Hello,

I am having problems filtering instagram images to only display images with certain hashtags using javascript. Would appreciate some help and tips to get it running.

@jasper-clarke
Copy link
Contributor

@HeterLaron

You can use the filter option when creating an Instafeed object.

      const feed = new Instafeed({
        accessToken: token,
        filter: function (data) {
          // Your filter
          return data.caption.includes("#grey");
        },
      });
      feed.run();

@jasper-clarke
Copy link
Contributor

jasper-clarke commented Jan 27, 2025

I don't use Instagram much personally but it seems that there may be a way to add tags outside of the description of the post.
If that's the case I'm sure we can architect a solution. (react if that is the case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants