Skip to content

feat(instagram): add collaboration invite type#1670

Merged
nbartels merged 1 commit into
devfrom
feature/ig-collaboration-invite
May 7, 2026
Merged

feat(instagram): add collaboration invite type#1670
nbartels merged 1 commit into
devfrom
feature/ig-collaboration-invite

Conversation

@nbartels

@nbartels nbartels commented May 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add IgCollaborativeInvite for Instagram collaboration invite responses from /<IG_USER_ID>/collaboration_invites.
  • Mark existing IgMedia and IgMediaChild fields that are documented for the collaborative_media connection.

Verification

  • mvn -DskipTests compile

Summary by CodeRabbit

  • New Features

    • Added support for Instagram collaborative invites, including media details, owner information, and captions.
  • Documentation

    • Updated documentation to reflect field availability for collaborative media connections.

@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d9cea268-dc69-4abc-8250-00ff8e9ad722

📥 Commits

Reviewing files that changed from the base of the PR and between 519f59a and 598004b.

📒 Files selected for processing (3)
  • src/main/lombok/com/restfb/types/instagram/IgCollaborativeInvite.java
  • src/main/lombok/com/restfb/types/instagram/IgMedia.java
  • src/main/lombok/com/restfb/types/instagram/IgMediaChild.java

📝 Walkthrough

Walkthrough

This PR adds Instagram collaborative media support by introducing a new IgCollaborativeInvite type to model collaboration invites and updates Javadoc annotations across existing IgMedia and IgMediaChild types to document field availability within the collaborative_media connection.

Changes

Instagram Collaborative Media Support

Layer / File(s) Summary
New Collaborative Invite Type
src/main/lombok/com/restfb/types/instagram/IgCollaborativeInvite.java
New class IgCollaborativeInvite extends AbstractFacebookType with fields mediaId, mediaOwnerUsername, caption, and mediaUrl, each mapped via @Facebook annotations to Instagram API response keys.
Media Type Documentation
src/main/lombok/com/restfb/types/instagram/IgMedia.java, src/main/lombok/com/restfb/types/instagram/IgMediaChild.java
Javadoc for metric fields (caption, commentsCount, likeCount, repostsCount, savedCount, sharesCount, totalCommentsCount, totalLikeCount, totalViewsCount, thumbnailUrl in IgMedia; mediaType, mediaUrl, mediaProductType, permalink, thumbnailUrl, timestamp, username in IgMediaChild) is updated to note availability for the collaborative_media connection.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Possibly related PRs

  • restfb/restfb#1664: Adds the media metric fields (repostsCount, savedCount, sharesCount, and total* counts) that this PR documents as available for collaborative_media.

Suggested labels

type: missing field/type

Poem

🐰 A rabbit in the garden found,
New collaborative media ground,
With invites typed and documented clear,
Instagram's features bloom right here! 🌱

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: adding a new Instagram collaboration invite type (IgCollaborativeInvite class).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/ig-collaboration-invite

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nbartels nbartels added this to the 2026.6.0 milestone May 7, 2026
@nbartels nbartels self-assigned this May 7, 2026
@nbartels
nbartels merged commit a8854d3 into dev May 7, 2026
4 checks passed
@nbartels
nbartels deleted the feature/ig-collaboration-invite branch May 7, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant