FacebookWorkplaceGraph

FREE
By zakutynsky
Updated 5 months ago
Social
1.9/10
Popularity Score
238ms
Latency
100%
Success Rate

FacebookWorkplaceGraph API Documentation

Managing user accounts and a Graph API for managing groups membership, and content that exists within your instance.

View API Details
POSTaddGroupToCommunity
POSTaddMemberToGroup
POSTcreateGroupEvent
POSTcreateGroupPost
POSTdeleteMemberFromGroup
POSTdeleteMemberInboxMessage
POSTgetCommunityGroups
POSTgetCommunityMembers
POSTgetGroupDocs
POSTgetGroupMembers
POSTgetGroupPosts
POSTgetMemberConversations
POSTgetMemberEvents
POSTgetPostComments
POSTgetSingleCommunity
POSTgetSingleGroup
POSTgetSingleMember
POSTgetSinglePost
POSTsetMemberAsGroupAdmin
POSTtagUserInGroupPost
POSTunsetGroupAdmin
POSTaddGroupToCommunity

Add a new group to a community

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
accessTokenCREDENTIALS
REQUIREDThe api key obtained from Facebook Workplace
nameSTRING
REQUIREDGroup name
descriptionSTRING
REQUIREDGroup description
communityIdSTRING
REQUIREDCommunity id
Optional Parameters
privacySELECT
OPTIONALThe privacy setting of the group. Possible values: OPEN, CLOSED, SECRET. Default CLOSED
Code Snippet
unirest.post("https://FacebookWorkplaceGraphzakutynskyV1.p.rapidapi.com/addGroupToCommunity")
.header("X-RapidAPI-Host", "FacebookWorkplaceGraphzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://FacebookWorkplaceGraphzakutynskyV1.p.rapidapi.com/addGroupToCommunity
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://FacebookWorkplaceGraphzakutynskyV1.p.rapidapi.com/addGroupToCommunity")
.header("X-RapidAPI-Host", "FacebookWorkplaceGraphzakutynskyV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication