Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Instagram Laravel Package

beloop/instagram

Read-only Instagram component from the Beloop LMS suite. Provides Instagram-related integration as part of beloop/components, built on Symfony and released under the MIT license. For support, issues, and PRs, use the main beloop/components repository.

View on GitHub
Deep Wiki
Context7

[READ-ONLY] Subtree split of Beloop Instagram component

Frequently asked questions about Instagram
Can I use **beloop/instagram** in a Laravel project for fetching public Instagram posts?
Technically possible but challenging due to Symfony dependencies. The package lacks Laravel-native features like Artisan commands or config publishing, requiring manual adapters (e.g., service container bridges). Test thoroughly for API compatibility, as it relies on Instagram’s legacy endpoints (last updated 2019).
Does this package support Instagram’s Graph API (v18+) or only legacy endpoints?
The package likely uses deprecated Instagram API routes (e.g., `/users/self/media`). Meta’s Graph API v18+ requires OAuth2 scopes and modern endpoints like `/me/media`. You’d need to manually update the package or build a custom wrapper for compatibility.
How do I handle OAuth2 authentication with **beloop/instagram** in Laravel?
The package lacks built-in OAuth2 logic (e.g., token refresh, PKCE). Use Laravel’s **Socialite** or a custom OAuth2 service (e.g., `league/oauth2-client`) to manage credentials. Store tokens securely in environment variables or Laravel’s vault, as the package doesn’t enforce secure credential storage.
Will this package work with Laravel 10+? Are there PHP version conflicts?
The package requires PHP 7.2+, but Symfony dependencies (e.g., `symfony/http-client`) may conflict with Laravel’s native packages. Test for compatibility with Laravel 10’s PHP 8.1+ requirements. Deprecated Symfony features (e.g., `create_command`) could break without manual updates.
Can I store Instagram posts in Laravel’s database using Eloquent models?
No Eloquent integration is provided. You’ll need to create custom models (e.g., `InstagramPost`) and migrations to parse raw API responses (JSON). Consider using Laravel’s **Scout** for search or **Laravel Nova** for admin dashboards if managing large datasets.
Are there alternatives to **beloop/instagram** for Laravel that support modern Instagram APIs?
Yes. For read-only access, evaluate **spatie/instagram-webhooks** (webhook-based) or **guzzlehttp/guzzle** with a custom Graph API wrapper. For interactive features (e.g., posting), use **laravel-socialite** or **meta-for-php/graph-sdk**. These avoid Symfony dependencies and offer active maintenance.
How do I handle rate limits or caching with this package in production?
The package lacks built-in caching (e.g., Redis). Implement Laravel’s **Cache** facade or **queue jobs** to throttle requests and avoid rate limits. For bulk data, use Instagram’s pagination endpoints manually or batch requests with Guzzle’s middleware.
Does this package support Instagram Stories or Reels API?
No. The package focuses on legacy public content (e.g., feed, user media). Instagram Stories/Reels require the **Graph API** with `instagram_basic` or `instagram_graph` permissions, which this package doesn’t support. Use Meta’s official PHP SDK for these features.
How do I configure **beloop/instagram** in Laravel without a config publisher?
Manually create a `config/instagram.php` file and define credentials (e.g., `client_id`, `client_secret`). Avoid hardcoding secrets; use Laravel’s `.env` or **Vault**. The package expects Symfony-style configuration, so adapt your `services.php` to register its services as Laravel providers.
Is this package GDPR-compliant for storing Instagram user data?
Compliance depends on your implementation. The package doesn’t enforce consent flows or data anonymization. For GDPR, ensure you use **Laravel’s encryption** for sensitive data, implement user opt-outs, and document data retention policies. Consult Meta’s Platform Policy for Instagram API usage rules.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed