Once your users have connected their Facebook Pages account, you can use the Paragon SDK to access Facebook Pages on behalf of connected users.See the Facebook Pages REST API documentation for their full API reference.Any Facebook Pages endpoints can be accessed with the Paragon SDK as shown in this example.
JavaScript
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration.// Authenticate the userparagon.authenticate(<ProjectID>, <Paragon User Token>);// Post content to a Facebook Pageawait paragon.request('facebookpages', '/feed', { method: 'POST', body: { 'message': 'Hello Fans!' }});// Get Page Infoawait paragon.request('facebookpages', '?fields=about,name,category,description,contact_address,emails,app_id,posts,username,verification_status,link,personal_info,phone', { method: 'GET'});// Get a single Metricawait paragon.request('facebookpages', '/insights/<metric-name>', { method: 'GET'});
Once your Facebook Pages account is connected, you use the Facebook Pages Request step to access any of Facebook Pages’ API endpoints without the authentication piece.When creating or updating records in Facebook Pages, you can reference data from previous steps by typing {{ to invoke the variable menu.