Download the PHP package pharit/tong-facebook-sdk without Composer
On this page you can find all versions of the php package pharit/tong-facebook-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pharit/tong-facebook-sdk
More information about pharit/tong-facebook-sdk
Files in pharit/tong-facebook-sdk
Package tong-facebook-sdk
Short Description A comprehensive Facebook SDK API package for Laravel applications
License MIT
Informations about the package tong-facebook-sdk
Tong Facebook SDK for Laravel
A comprehensive Facebook SDK package for Laravel applications that provides easy integration with Facebook's Graph API, OAuth authentication, and various Facebook features.
Features
- ๐ OAuth Authentication - Complete OAuth flow implementation
- ๐ Graph API Integration - Full access to Facebook's Graph API
- ๐ฅ User Management - Get user profiles, friends, posts, and more
- ๐ฑ Page Management - Create posts, manage pages, and get insights
- ๐ฅ Group Operations - Post to groups and manage group interactions
- ๐ธ Media Handling - Upload photos and manage albums
- ๐ฏ Search Functionality - Search for users, pages, groups, and events
- ๐ Analytics - Get insights and analytics data
- ๐ก๏ธ Error Handling - Comprehensive error handling with custom exceptions
- ๐ Logging - Built-in request/response logging
- ๐พ Caching - Automatic caching for improved performance
- ๐งช Testing - Full test suite with PHPUnit
Requirements
- PHP 8.1 or higher
- Laravel 10.x or 11.x
- GuzzleHTTP 7.0 or higher
Installation
-
Install the package via Composer:
-
Publish the configuration file:
- Add your Facebook App credentials to your
.envfile:
Configuration
The configuration file config/facebook-sdk.php contains all the settings for the Facebook SDK:
Usage
Basic Usage
Using the Facade
Using Dependency Injection
Authentication
OAuth Login Flow
Token Management
Graph API Operations
User Operations
Media Operations
Page Operations
Group Operations
Social Interactions
Search and Analytics
Error Handling
The package provides comprehensive error handling with custom exceptions:
Caching
The package includes automatic caching for GET requests:
Logging
Enable logging to track API requests and responses:
Testing
Run the test suite:
Or run with coverage:
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
License
This package is open-sourced software licensed under the MIT license.
Support
If you encounter any issues or have questions, please open an issue on GitHub.
Changelog
1.0.0
- Initial release
- OAuth authentication
- Graph API integration
- User, page, and group operations
- Media handling
- Search functionality
- Analytics and insights
- Error handling and logging
- Caching support
- Comprehensive test suite
All versions of tong-facebook-sdk with dependencies
laravel/framework Version ^10.0|^11.0
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^10.0|^11.0
illuminate/config Version ^10.0|^11.0