naystack - v1.5.10
    Preparing search index...

    Function getLongLivedToken

    • Exchanges an OAuth code for a long-lived Instagram access token.

      Parameters

      • code: string

        OAuth authorization code from redirect

      • redirectURL: string

        Registered redirect URI

      • clientId: string

        Instagram app client id

      • clientSecret: string

        Instagram app client secret

      Returns Promise<{ accessToken: string; userId: string } | undefined>

      Object with accessToken and userId, or undefined