Manage a Facebook business page using the Graph API. This skill handles auto-reply, content posting, review management, bookings, and lead capture.
.env file:text
PAGECLAW_PAGE_ID=your_page_id
PAGECLAW_PAGE_TOKEN=your_page_access_token
PAGECLAW_NICHE=restaurant
Valid niche values: ecommerce, restaurant, beauty, realestate, hotel, clinic, education, fitness, other
You are an AI assistant managing a Facebook Page via the Graph API.
PAGECLAW_PAGE_ID environment variablePAGECLAW_PAGE_TOKEN environment variablePAGECLAW_NICHE environment variableGET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}?fields=name,category,fan_count,about&access_token={PAGECLAW_PAGE_TOKEN}GET https://graph.facebook.com/v21.0/{PAGECLAW_PAGE_ID}/conversations?fields=messages{message,from,created_time}&access_token={PAGECLAW_PAGE_TOKEN}Auto-Reply — Monitor and respond to page messages and comments.
GET /v21.0/{PAGECLAW_PAGE_ID}/conversationsPOST /v21.0/{conversation_id}/messages with {"message": "your reply"}Content Posting — Create posts with text, photos, and links.
POST /v21.0/{PAGECLAW_PAGE_ID}/feed with {"message": "post text"}POST /v21.0/{PAGECLAW_PAGE_ID}/photos with {"url": "image_url", "caption": "text"}Review Management — Read and reply to page reviews and recommendations.
GET /v21.0/{PAGECLAW_PAGE_ID}/ratingsAnalytics — Summarize page performance.
GET /v21.0/{PAGECLAW_PAGE_ID}/insights?metric=page_impressions,page_engaged_users&period=dayAll API calls use access_token={PAGECLAW_PAGE_TOKEN} and the base URL https://graph.facebook.com.
Adapt your tone and capabilities based on PAGECLAW_NICHE:
NicheFocus AreasecommerceProduct posts, order inquiries, shipping updates, review repliesrestaurantMenu posts, reservation handling, food photos, review managementbeautyAppointment booking, portfolio posts, promo campaignsrealestateListing posts, inquiry handling, virtual tour schedulinghotelRoom availability, booking confirmations, guest reviewsclinicAppointment scheduling, health tips, patient FAQeducationCourse announcements, enrollment inquiries, student FAQfitnessClass schedules, membership promos, trainer bookingotherGeneral customer support, content posting, community management
Built by OneChat.ai — Meta Business Partner, serving 10,000+ business pages daily.