Open
Conversation
…at/instagram-ingest
Feat/instagram ingest
Feat/instagram ingest
create deno script to use edge functions and simplify code
fix: resolve linting error with explicit any
Add Nulls first check to add priority to new instagram accounts for cron job
This prevents wasting requests trying to catch-up with accounts which have been signed out for a long time. Implemetation: request latest 50 posts Check if a posts timestamp is less than last_synced_at if is the case stops process to prevent duplication of posts IF more than 50 new posts upon resigning it process 50 latest posts but ignores the posts before that.
Set up supabase cron
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a Instagram OAuth integration, including both backend API routes and frontend UI components, to enable organizations to connect and disconnect their Instagram accounts. It also refactors the authentication callback flow and improves user feedback on successful connections. The most important changes are grouped below:
Instagram OAuth Integration:
oauth-url), handle the callback (callback), exchange tokens (exchange-token), and disconnect the account (disconnect). These endpoints handle the full OAuth flow, token management, and database updates for connected Instagram accounts. [1] [2] [3] [4]ConnectInstagramButton, which allows organization users to connect or disconnect their Instagram account, with proper loading states and toast notifications.AuthButtoncomponent to show the Instagram connect/disconnect button for organization profiles. [1] [2]Authentication Flow Improvements:
/auth/oauth/callback), and updated all Google and email authentication flows to use this new callback route. [1] [2] [3] [4] [5]Frontend User Feedback:
HomeContentcomponent that listens for the appropriate query parameter. [1] [2]Third-party SDK Initialization:
<head>using Next.jsScriptcomponents to support Instagram Graph API features. [1] [2]These changes collectively provide a robust Instagram connection experience for users, ensure secure OAuth handling, and improve feedback and reliability across the authentication flow.