Instagram API Integration Spring Boot
Budget: ₹600 – ₹1,500 INR
I’m extending a Spring Boot back-end and need three clean, production-ready REST endpoints that handle Instagram account linking and data retrieval through the official Graph API.
1. Link-Account Endpoint
• Trigger the OAuth flow, secure the callback, and store the user-scoped access token.
• Handle both authentication and authorization seamlessly so the user can grant the requested scopes in a single step.
2. Data-Fetch Endpoint
• With the stored token, pull the user’s profile details, their recent posts, and their followers list in one consolidated response (or separate calls if pagination makes more sense).
• Parse and map the JSON into entities, then persist them to a relational database via standard Spring Data/JPA.
3. Refresh/Unlink Endpoint
• Refresh an expired token or revoke access entirely, tidying up any stored data when required.
I already have the base project skeleton; your job is to wire in the Instagram calls, define the DTOs/entities, and expose the controllers/service layer with sensible error handling and simple unit tests. Use any mainstream SQL database configuration—I’ll plug in the credentials later.
Acceptance criteria
• Clear README with setup steps and the URL/parameter spec for each endpoint.
• Code compiles and runs locally with `mvn spring-boot:run`.
• A short Postman collection (or cURL scripts) proves the full link-authorize-fetch cycle.
If you’ve successfully integrated Instagram Graph API in Java before, this should be straightforward—let’s get started.
1. Link-Account Endpoint
• Trigger the OAuth flow, secure the callback, and store the user-scoped access token.
• Handle both authentication and authorization seamlessly so the user can grant the requested scopes in a single step.
2. Data-Fetch Endpoint
• With the stored token, pull the user’s profile details, their recent posts, and their followers list in one consolidated response (or separate calls if pagination makes more sense).
• Parse and map the JSON into entities, then persist them to a relational database via standard Spring Data/JPA.
3. Refresh/Unlink Endpoint
• Refresh an expired token or revoke access entirely, tidying up any stored data when required.
I already have the base project skeleton; your job is to wire in the Instagram calls, define the DTOs/entities, and expose the controllers/service layer with sensible error handling and simple unit tests. Use any mainstream SQL database configuration—I’ll plug in the credentials later.
Acceptance criteria
• Clear README with setup steps and the URL/parameter spec for each endpoint.
• Code compiles and runs locally with `mvn spring-boot:run`.
• A short Postman collection (or cURL scripts) proves the full link-authorize-fetch cycle.
If you’ve successfully integrated Instagram Graph API in Java before, this should be straightforward—let’s get started.