데이터셋을 사용한 장기 Facebook 액세스 토큰 얻기
중급
이것은Social Media분야의자동화 워크플로우로, 11개의 노드를 포함합니다.주로 Set, SplitOut, DataTable, HttpRequest, ScheduleTrigger 등의 노드를 사용하며. 데이터 시트 저장을 통한 Facebook 페이지 토큰 갱신 자동화
사전 요구사항
- •대상 API의 인증 정보가 필요할 수 있음
카테고리
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "enqUom6Fs1WaDOCW",
"meta": {
"instanceId": "b5825084f383ba38862ba0b5b7e95c5107a40c4ed7afc78372d74501163a8e33",
"templateId": "2535"
},
"name": "Get long facebook access token with data tables",
"tags": [],
"nodes": [
{
"id": "11a68266-f7ec-4c56-9327-c4fd0e4478f6",
"name": "매개변수 설정",
"type": "n8n-nodes-base.set",
"position": [
720,
240
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b1f6b8a1-dc25-4b1e-9aa3-0c0e452ae2de",
"name": " client_id",
"type": "string",
"value": "<client_id>"
},
{
"id": "9a63879a-c359-49ad-9fec-19c9e4c78dd6",
"name": " client_secret",
"type": "string",
"value": "<client_secret>"
},
{
"id": "6971a841-ed5e-4d96-bdab-1eaec2d51ccc",
"name": "user_access_token",
"type": "string",
"value": "<user_access_token>"
},
{
"id": "c75d5e50-62ea-4ee0-bfaa-5f79cf4d147e",
"name": "app_scoped_user_id",
"type": "string",
"value": "<app_scoped_user_id>"
},
{
"id": "75516211-496a-46bf-82ad-2352f7080512",
"name": "long_user_access_token",
"type": "string",
"value": "={{ $json.body.access_token }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c844cc76-6a73-4e4c-b5af-dd3b0c391a66",
"name": "분할",
"type": "n8n-nodes-base.splitOut",
"position": [
352,
880
],
"parameters": {
"include": "allOtherFields",
"options": {
"includeBinary": false
},
"fieldToSplitOut": "body.data"
},
"typeVersion": 1
},
{
"id": "5bbff2d4-0b0e-4194-97f7-c1a4c09c7c77",
"name": "필드 편집",
"type": "n8n-nodes-base.set",
"position": [
544,
880
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "fead0c79-b7a9-4da8-adc8-c68ea86041af",
"name": "access_token",
"type": "string",
"value": "={{ $json['body.data'].access_token }}"
},
{
"id": "98467cc1-4960-4291-a685-b7dd04f24211",
"name": "name",
"type": "string",
"value": "={{ $json['body.data'].name }}"
},
{
"id": "6b7b8c21-ef78-40ba-86df-0a7f46057bca",
"name": "id",
"type": "string",
"value": "={{ $json['body.data'].id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "fa84d8ed-511e-42b7-a954-a35bb5b70dd8",
"name": "행 업서트",
"type": "n8n-nodes-base.dataTable",
"position": [
736,
880
],
"parameters": {
"columns": {
"value": {
"token": "={{ $json.access_token }}",
"id_page": "={{ $json.id }}",
"name_page": "={{ $json.name }}"
},
"schema": [
{
"id": "name_page",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "name_page",
"defaultMatch": false
},
{
"id": "id_page",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "id_page",
"defaultMatch": false
},
{
"id": "token",
"type": "string",
"display": true,
"removed": false,
"readOnly": false,
"required": false,
"displayName": "token",
"defaultMatch": false
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"filters": {
"conditions": [
{
"keyName": "id_page",
"keyValue": "={{ $json.id }}"
}
]
},
"matchType": "allConditions",
"operation": "upsert",
"dataTableId": {
"__rl": true,
"mode": "list",
"value": "tmKVoWFoXqgiVHtI",
"cachedResultUrl": "/projects/ZsXeoU4uGUhTbvTf/datatables/tmKVoWFoXqgiVHtI",
"cachedResultName": "n8n"
}
},
"typeVersion": 1
},
{
"id": "76b1d58f-41d6-4088-99e1-da2a3663116e",
"name": "스케줄 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
272,
240
],
"parameters": {
"rule": {
"interval": [
{
"field": "months",
"monthsInterval": 2
}
]
}
},
"typeVersion": 1.2
},
{
"id": "831a32d7-ea1a-4d5b-bd2e-e9e715e6d7a1",
"name": "스티커 메모",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
176
],
"parameters": {
"color": 6,
"width": 1072,
"height": 288,
"content": "## Step 1\n**Get client_id, client_secret** [here](https://developers.facebook.com/apps)\n\n**Get user_access_token** [here](https://developers.facebook.com/tools/explorer/)\n\n**Get app_scoped_user_idn** [here](https://developers.facebook.com/tools/debug/accesstoken/)"
},
"typeVersion": 1
},
{
"id": "cfbc57a3-bfb2-4237-b7b0-88d339362931",
"name": "스티커 메모1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
512
],
"parameters": {
"color": 3,
"width": 1072,
"height": 288,
"content": "## Step 2 \n**Get long lived facebook page token**"
},
"typeVersion": 1
},
{
"id": "dddf5f0d-2cab-4b75-8cc4-ecbcd5e3cbcc",
"name": "스티커 메모2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
848
],
"parameters": {
"width": 1072,
"height": 288,
"content": "## Step 3 \n**Now the Facebook Page token has \n\nbeen renewed and will be stored in \n\nthe data tables. This information \n\nwill also be updated whenever you \n\nrun this workflow.**"
},
"typeVersion": 1
},
{
"id": "9f3d0b85-8c02-4d78-9da8-f9ce98b189b2",
"name": "장기 유효 Facebook 사용자 토큰 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
304,
560
],
"parameters": {
"url": "https://graph.facebook.com/v23.0/oauth/access_token",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "grant_type",
"value": "fb_exchange_token"
},
{
"name": "client_id",
"value": "={{ $json[' client_id'] }}"
},
{
"name": "client_secret",
"value": "={{ $json[' client_secret'] }}"
},
{
"name": "fb_exchange_token",
"value": "={{ $json.user_access_token }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "84e16f5c-6be3-4639-9d34-18cc057725e6",
"name": "Facebook 페이지 목록 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
512,
560
],
"parameters": {
"url": "https://graph.facebook.com/v23.0/me/accounts",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "access_token",
"value": "={{ $json.body.access_token }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "4e898760-43cd-4d4f-a76c-555175fb2a27",
"name": "장기 유효 Facebook 페이지 토큰 가져오기",
"type": "n8n-nodes-base.httpRequest",
"position": [
720,
560
],
"parameters": {
"url": "=https://graph.facebook.com/v23.0/{{ $('Set Parameter').item.json.app_scoped_user_id }}/accounts",
"method": "=GET",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": " access_token",
"value": "={{ $('Get long lived facebook user token').item.json.body.access_token }}"
}
]
}
},
"typeVersion": 4.2
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a43aee60-5261-4af8-bdde-cf2c27b2cbc8",
"connections": {
"c844cc76-6a73-4e4c-b5af-dd3b0c391a66": {
"main": [
[
{
"node": "5bbff2d4-0b0e-4194-97f7-c1a4c09c7c77",
"type": "main",
"index": 0
}
]
]
},
"5bbff2d4-0b0e-4194-97f7-c1a4c09c7c77": {
"main": [
[
{
"node": "fa84d8ed-511e-42b7-a954-a35bb5b70dd8",
"type": "main",
"index": 0
}
]
]
},
"11a68266-f7ec-4c56-9327-c4fd0e4478f6": {
"main": [
[
{
"node": "9f3d0b85-8c02-4d78-9da8-f9ce98b189b2",
"type": "main",
"index": 0
}
]
]
},
"76b1d58f-41d6-4088-99e1-da2a3663116e": {
"main": [
[
{
"node": "11a68266-f7ec-4c56-9327-c4fd0e4478f6",
"type": "main",
"index": 0
}
]
]
},
"84e16f5c-6be3-4639-9d34-18cc057725e6": {
"main": [
[
{
"node": "4e898760-43cd-4d4f-a76c-555175fb2a27",
"type": "main",
"index": 0
}
]
]
},
"4e898760-43cd-4d4f-a76c-555175fb2a27": {
"main": [
[
{
"node": "c844cc76-6a73-4e4c-b5af-dd3b0c391a66",
"type": "main",
"index": 0
}
]
]
},
"9f3d0b85-8c02-4d78-9da8-f9ce98b189b2": {
"main": [
[
{
"node": "84e16f5c-6be3-4639-9d34-18cc057725e6",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 소셜 미디어
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
Facebook 페이지에 릴스 게시
Google Sheets와 Drive를 사용한 Facebook Reels 게시 자동화
If
Set
Code
+
If
Set
Code
17 노드Đỗ Thành Nguyên
소셜 미디어
Facebook 페이지에 비디오 스토리 게시
Google Drive 및 Sheets를 사용한 비디오 스토리 Facebook 페이지 게시 자동화
If
Set
Code
+
If
Set
Code
16 노드Đỗ Thành Nguyên
소셜 미디어
Claude AI 텍스트 생성기를 사용하여 Lightroom에서 Instagram까지 자동화
Claude AI를 대체 텍스트 생성기로 사용하여 Lightroom에서 Instagram까지 자동화
Set
Code
Sort
+
Set
Code
Sort
14 노드Camille Roux
소셜 미디어
Apify와 GPT-4.1을 사용하여 Skool 커뮤니티에서 상호작용 기회 발견
Apify와 GPT-4.1을 통해 Skool 커뮤니티에서 상호작용 기회를 발견합니다.
Set
Filter
Airtable
+
Set
Filter
Airtable
18 노드Alexandra Spalato
소셜 미디어
미국 하원 법안을 기반으로 Gemini AI를 사용하여 주간 동물권 행동 요약 보고서 생성
미국 하원 법안을 기반으로 Gemini AI를 사용하여 주간 동물권 행동 요약 보고서 생성
If
Set
Html
+
If
Set
Html
26 노드Open Paws
소셜 미디어
Lightroom 사진 Instagram 자동 게시기(AI 자막)
Lightroom 사진 Instagram 자동 게시기(AI 자막)
Set
Sort
Limit
+
Set
Sort
Limit
17 노드Camille Roux
소셜 미디어