Facebook Groups are a place to communicate about shared interests with certain people. You can create a group for anything — your family reunion, your after-work sports team or your book club.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
facebook_groups: {
type: "app",
app: "facebook_groups",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.facebook.com/v17.0/me/`,
headers: {
Authorization: `Bearer ${this.facebook_groups.$auth.oauth_access_token}`,
},
})
},
})
You need to install the Pipedream app in your Facebook Group in order to make any API calls, or use any prebuilt triggers or actions. To install Pipedream, navigate to the group where you're an administrator, and in the left sidebar, under Settings > Group Settings, you'll find Manage Advanced Settings. Click the Edit button under Apps.
Search for "Pipedream", and add the app to your Facebook Group. Once the Pipedream app is successfully added to your group, you can start building automated workflows on Pipedream using Facebook Groups.
Retrieves a list of comments on a group post. See the documentation
Retrieves a list of reactions on a group post. See the documentation
Facebook Groups uses OAuth authentication. When you connect your Facebook Groups account, Pipedream will open a popup window where you can sign into Facebook Groups and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Facebook Groups API.
Pipedream requests the following authorization scopes when you connect your account:
email
public_profile
publish_to_groups
GET
https://www.facebook.com/v17.0/dialog/oauth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
scope={{oauth.comma_separated_scopes}}
&
response_type=code
GET
https://graph.facebook.com/v17.0/oauth/access_token
?
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
code={{oauth.code}}
content-type: application/x-www-form-urlencoded
accept: application/json
POST
https://graph.facebook.com/v17.0/oauth/access_token
?
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=fb_exchange_token
&
fb_exchange_token={{oauth.access_token}}
content-type: application/x-www-form-urlencoded
accept: application/json