net3000.facebook
1.0.0
dotnet add package net3000.facebook --version 1.0.0
NuGet\Install-Package net3000.facebook -Version 1.0.0
<PackageReference Include="net3000.facebook" Version="1.0.0" />
<PackageVersion Include="net3000.facebook" Version="1.0.0" />
<PackageReference Include="net3000.facebook" />
paket add net3000.facebook --version 1.0.0
#r "nuget: net3000.facebook, 1.0.0"
#:package net3000.facebook@1.0.0
#addin nuget:?package=net3000.facebook&version=1.0.0
#tool nuget:?package=net3000.facebook&version=1.0.0
Net3000.Facebook
Overview
The Net3000.Facebook library provides comprehensive integration with the Facebook Graph API for Net3000 solutions. This library enables social media management, content posting, page administration, and Facebook data retrieval.
Features
- Content Management: Post content, images, and videos to Facebook pages
- Page Administration: Manage Facebook pages and retrieve page information
- Social Media Analytics: Access Facebook insights and post statistics
- Media Handling: Upload and manage images and videos
- Review Management: Retrieve and manage Facebook page reviews
- Event Management: Handle Facebook events and event data
Installation
dotnet add package net3000.facebook
Dependencies
net3000.common(v9.0.11)net3000.common.models(v1.0.7)System.IdentityModel.Tokens.Jwt(v8.14.0)
Configuration
Add your Facebook API credentials to your configuration:
{
"Facebook": {
"Id": "your-facebook-app-id",
"Secret": "your-facebook-app-secret",
"Version": "v18.0"
}
}
Usage
Basic Setup
using net3000.facebook;
// Initialize the service
var facebookService = new lib(configuration);
facebookService.accessToken = "your-page-access-token";
facebookService.currentPageId = "your-page-id";
Posting Content
// Post text content to Facebook
facebookService.message = "Hello from Net3000!";
facebookService.postToId = "your-page-id";
var result = facebookService.addPost();
// Post with images
facebookService.title = "Image Post";
facebookService.message = "Check out this image!";
var file = new postFile();
file.byteArray = imageBytes;
facebookService.files = new List<postFile> { file };
var result = facebookService.postToFeed("Image Post", "Check out this image!", imageList);
Retrieving Page Data
// Get page accounts
var accounts = facebookService.getAccounts();
// Get page albums
var albums = facebookService.getAlbums();
// Get page reviews
var reviews = facebookService.getReviews();
API Reference
lib (Main Service Class)
Main service class for Facebook Graph API integration.
Properties
accessToken- Facebook page access tokencurrentPageId- Current Facebook page IDcurrentPageName- Current Facebook page namepostToId- Target page ID for postsmessage- Post message contenttitle- Post titlefiles- List of files to upload
Methods
addPost()- Add a new post to Facebook feedaddNote()- Add a note to FacebookgetAccounts()- Get Facebook page accountsgetAlbums()- Get page photo albumsgetImagesForAlbum()- Get images from a specific albumgetFeed()- Get page feed postsgetPostDetails()- Get detailed post informationpostToFeed()- Post content with images to feedgetReviews()- Get page reviewsgetEvents()- Get page eventsUploadImageToFacebookPage()- Upload images to Facebook
Models
facebookPage- Facebook page informationalbums- Album data structureimagedata- Image data structureFacebookFeed- Feed data structureFacebookPost- Post data structurepostResponse- Response from posting operationsreviewItem- Review data structureevents- Event data structure
Error Handling
The library provides comprehensive error handling with detailed error messages from the Facebook Graph API. All methods return apiResponse<T> objects with success/failure status and detailed error information.
Rate Limiting
The library respects Facebook Graph API rate limits and includes proper error handling for rate limit exceeded responses.
Authentication
- Requires Facebook App ID and Secret for API access
- Uses Page Access Tokens for page-specific operations
- Supports both short-lived and long-lived access tokens
Testing
Use Facebook's test environment for development:
- Create a Facebook App in Developer Mode
- Use test pages and test users
- Test API endpoints with limited data
License
This library is proprietary to Net3000. Usage is restricted to Net3000.ca solutions and authorized affiliates. Redistribution, sublicensing, or integration with third-party products outside the Net3000 ecosystem is prohibited without written consent from Net3000.
Support
For support and questions, contact the Net3000 development team or visit net3000.ca.
Changelog
v1.0.0
- Initial release with Facebook Graph API integration
- Content posting and page management capabilities
- Image and video upload functionality
- Review and analytics data retrieval
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- net3000.common (>= 9.0.11)
- net3000.common.models (>= 1.0.7)
- System.IdentityModel.Tokens.Jwt (>= 8.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 95 | 10/4/2025 |
Initial release of Net3000 Facebook library with Graph API integration for posting content and managing Facebook pages.