# Facebook Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Facebook Graph API connector for interacting with users, pages, posts, photos, events, and groups
**Categories:**
- {'id': 'social-media', 'name': 'Social Media', 'description': 'Social media platforms and content sharing APIs', 'priority': 7}
## Base Endpoint
https://api.lowcodeapi.com/facebook
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** TOKEN
**Official Documentation:** https://developers.facebook.com/docs/graph-api
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### Get Current User
**Method:** GET
**LowCodeAPI Path:** /v16.0/me
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/me?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user
### Get User
**Method:** GET
**LowCodeAPI Path:** /v16.0/{user_id}
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/{user_id}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/user_id?user_id={user_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| user_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/{user_id}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user
### Get Current User Feed
**Method:** GET
**LowCodeAPI Path:** /v16.0/me/feed
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
| limit | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/feed
### Get User Feed
**Method:** GET
**LowCodeAPI Path:** /v16.0/{user_id}/feed
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/{user_id}/feed?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/user_id/feed?user_id={user_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| user_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
| limit | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/{user_id}/feed?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/feed
### Post to Current User Feed
**Method:** POST
**LowCodeAPI Path:** /v16.0/me/feed
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| link | string | |
| message | string | |
| place | string | |
| privacy | string | |
| tags | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/facebook/v16.0/me/feed?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/feed
### Post to User Feed
**Method:** POST
**LowCodeAPI Path:** /v16.0/{user_id}/feed
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/{user_id}/feed?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/user_id/feed?user_id={user_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| user_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| link | string | |
| message | string | |
| place | string | |
| privacy | string | |
| tags | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/facebook/v16.0/{user_id}/feed?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/feed
### Get Current User Photos
**Method:** GET
**LowCodeAPI Path:** /v16.0/me/photos
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
| limit | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/photos
### Get User Photos
**Method:** GET
**LowCodeAPI Path:** /v16.0/{user_id}/photos
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/{user_id}/photos?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/user_id/photos?user_id={user_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| user_id | string | |
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| fields | string | |
| limit | number | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/facebook/v16.0/{user_id}/photos?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/photos
### Upload Photo to Current User
**Method:** POST
**LowCodeAPI Path:** /v16.0/me/photos
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| caption | string | |
| no_story | boolean | |
| place | string | |
| published | boolean | |
| url | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/facebook/v16.0/me/photos?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/photos
### Upload Photo to User
**Method:** POST
**LowCodeAPI Path:** /v16.0/{user_id}/photos
**New Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/{user_id}/photos?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/facebook/v16.0/user_id/photos?user_id={user_id}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| user_id | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| caption | string | |
| no_story | boolean | |
| place | string | |
| published | boolean | |
| url | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/facebook/v16.0/{user_id}/photos?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://developers.facebook.com/docs/graph-api/reference/user/photos
## Usage Examples
### Example 1: Get User Profile
```bash
# Get current user information
curl -X GET "https://api.lowcodeapi.com/facebook/user?api_token=YOUR_API_TOKEN"
```
### Example 2: List Messages or Posts
```bash
# Get list of messages/posts
curl -X GET "https://api.lowcodeapi.com/facebook/messages?api_token=YOUR_API_TOKEN"
```
### Example 3: Send Message or Create Post
```bash
# Send a message
curl -X POST "https://api.lowcodeapi.com/facebook/chat.postMessage?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "CHANNEL_ID",
"text": "Hello from Facebook!"
}'
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| Get Current User | GET | User |
| Get User | GET | User |
| Get Current User Feed | GET | User |
| Get User Feed | GET | User |
| Post to Current User Feed | POST | User |
| Post to User Feed | POST | User |
| Get Current User Photos | GET | User |
| Get User Photos | GET | User |
| Upload Photo to Current User | POST | User |
| Upload Photo to User | POST | User |
| Get Page | GET | Page |
| Get Page Feed | GET | Page |
| Post to Page Feed | POST | Page |
| Get Page Posts | GET | Page |
| Get Page Photos | GET | Page |
| Upload Photo to Page | POST | Page |
| Get Post | GET | Post |
| Update Post | POST | Post |
| Delete Post | DELETE | Post |
| Get Post Comments | GET | Post |
| Create Comment on Post | POST | Post |
| Get Post Likes | GET | Post |
| Like Post | POST | Post |
| Unlike Post | DELETE | Post |
| Get Comment | GET | Comment |
| Update Comment | POST | Comment |
| Delete Comment | DELETE | Comment |
| Get Comment Likes | GET | Comment |
| Like Comment | POST | Comment |
| Unlike Comment | DELETE | Comment |
| Get Photo | GET | Photo |
| Delete Photo | DELETE | Photo |
| Get Photo Comments | GET | Photo |
| Create Comment on Photo | POST | Photo |
| Get Photo Likes | GET | Photo |
| Like Photo | POST | Photo |
| Unlike Photo | DELETE | Photo |
| Get Event | GET | Event |
| Get Page Events | GET | Event |
| Get Event Attendees | GET | Event |
| Get Event Interested Users | GET | Event |
| Get Group | GET | Group |
| Get Group Feed | GET | Group |
| Post to Group Feed | POST | Group |
| Get Group Members | GET | Group |
| Get User Pages | GET | User |
| Get User Permissions | GET | User |
| Get Current User Posts | GET | User |
| Get User Posts | GET | User |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/facebook/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/facebook/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```