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 / erfolgreicher Aufruf
Öffentliche ID: social.facebook.profile.posts · Version 1
Preise
USD 0.001200 / erfolgreicher Aufruf
Schnellstart
Suchen Sie dieses Tool mit Ihrem API-Schlüssel und prüfen Sie vor der Ausführung die zurückgegebenen Angaben zu provider und endpoint.
Setzen Sie GLOOP_API_BASE auf Ihre API-Adresse und GLOOP_API_KEY auf Ihren serverseitigen Schlüssel.
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());Tool-API-Dokumentation · POST /v1/inspectEingabeschema
{
"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"
}Ausgabeschema
{
"type": "object"
}