naystack - v1.9.9
    Preparing search index...

    Function getInstagramAuthorizationURL

    • Builds the Instagram OAuth authorization URL.

      Server-only — reads the non-public INSTAGRAM_CLIENT_ID. The client id still ends up in the URL the browser follows; it is simply built here rather than shipped in the client bundle.

      Parameters

      • state: string

        Passed back by Instagram on the callback; typically the logged-in user's access token.

      • redirectURI: string

        Where Instagram sends the user back. Must match a URI registered with Meta verbatim.

      • scopes: InstagramScope[] = ...

        Default: ["instagram_business_basic"].

      Returns string