Facebook Profile Posts API

List a Facebook page's recent posts by URL or page id with cursor pagination (text, author, publication time, permalink).

USD 0.001200 / استدعاء ناجح

المعرّف العام: social.facebook.profile.posts · الإصدار 1

الأسعار

USD 0.001200 / استدعاء ناجح

البدء السريع

ابحث عن هذه الأداة باستخدام مفتاح API، ثم افحص provider وendpoint المعادَين قبل التنفيذ.

اضبط GLOOP_API_BASE على عنوان API وGLOOP_API_KEY على مفتاح الخادم.

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/discover" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 5,
  "query": "Facebook Profile Posts"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/discover"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"limit\": 5,\n  \"query\": \"Facebook Profile Posts\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/discover";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "limit": 5,
  "query": "Facebook Profile Posts"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
وثائق API الأدوات · POST /v1/inspect

مخطط المدخلات

{
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "description": "Pagination cursor from a previous response.",
      "type": "string"
    },
    "url": {
      "description": "Facebook page or profile link, e.g. https://www.facebook.com/nike. Accepted: facebook.com/\u003cname\u003e, /p/\u003cname\u003e-\u003cid\u003e, /pages/\u003cname\u003e/\u003cid\u003e, /pg/\u003cname\u003e, /people/\u003cname\u003e/\u003cid\u003e, profile.php?id=\u003cid\u003e, and share links to a page (/share/\u003cid\u003e or /share/p/\u003cid\u003e), on facebook.com or fb.com with or without www, m, mbasic, web, business or a language subdomain. Anything after the page, such as a tab, is fine. Any other Facebook link, such as a single event, group, reel, video, video or reel share link (/share/v/ or /share/r/), hashtag, search or login page, is refused as invalid input, with no charge; facebook.event_details reads one event and facebook.post reads one post.",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "title": "Facebook profile posts input",
  "type": "object"
}

مخطط المخرجات

{
  "type": "object"
}

أدوات من الفئة نفسها