naystack - v1.9.9
    Preparing search index...

    Variable InstagramProviderConst

    InstagramProvider: SocialProvider = ...

    Instagram as a normalized SocialProvider.

    A ready-made singleton — import and call it, there is nothing to construct. Credentials are read from the environment inside the auth methods, so fetchProfile and fetchMedia need only a token and work in a process that has no Instagram OAuth configuration at all.

    Wraps the platform-specific helpers rather than replacing them: getInstagramUser and getInstagramMedia remain the way to reach fields this normalization drops.

    Requires env vars for auth only: INSTAGRAM_CLIENT_ID, INSTAGRAM_CLIENT_SECRET.

    import { InstagramProvider } from "naystack/socials";

    const profile = await InstagramProvider.fetchProfile(accessToken);
    const posts = await InstagramProvider.fetchMedia?.(accessToken, { limit: 6 });