|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Facebook API는 개발자에게 프로그래밍 방식으로 Facebook 플랫폼과 상호 작용하여 데이터 검색, 콘텐츠 게시, 광고 관리, 잠재 고객 통찰력 분석 등을 수행할 수 있는 도구를 제공합니다.

Many social media sites, like Facebook and X (formerly Twitter), now allow you to schedule posts in advance. However, it's still a tedious process that requires you to enter the posts one at a time. And if you have multiple accounts, you will need to log in and out of each one, which can be time-consuming. Another problem when trying to grow your social media account is the limited analytics provided by these sites.
Facebook 및 X(이전의 Twitter)와 같은 많은 소셜 미디어 사이트에서는 이제 게시물을 미리 예약할 수 있습니다. 하지만 여전히 게시물을 하나씩 입력해야 하는 지루한 과정입니다. 그리고 여러 계정이 있는 경우 각 계정에 로그인하고 로그아웃해야 하므로 시간이 많이 걸릴 수 있습니다. 소셜 미디어 계정을 성장시키려고 할 때 또 다른 문제는 이러한 사이트에서 제공하는 제한된 분석입니다.
Fortunately, we can solve both of these problems using an API (Application Programming Interface) and a simple Python script or similar program.
다행스럽게도 API(응용 프로그래밍 인터페이스)와 간단한 Python 스크립트 또는 유사한 프로그램을 사용하여 이러한 문제를 모두 해결할 수 있습니다.
Facebook offers a free API that works on both Facebook and Instagram, so keep reading while we explain how to get it and what you can do with it.
Facebook은 Facebook과 Instagram 모두에서 작동하는 무료 API를 제공하므로 API를 얻는 방법과 이를 사용하여 무엇을 할 수 있는지 설명하는 동안 계속 읽어보세요.
What is the Facebook API?
페이스북 API란 무엇인가요?
The Facebook API provides developers with tools to interact with Facebook's platform programmatically. This allows you to retrieve data, post content, manage ads, analyze audience insights, and much more.
Facebook API는 개발자에게 프로그래밍 방식으로 Facebook 플랫폼과 상호 작용할 수 있는 도구를 제공합니다. 이를 통해 데이터 검색, 콘텐츠 게시, 광고 관리, 잠재고객 통찰력 분석 등의 작업을 수행할 수 있습니다.
Facebook's APIs include the Graph API, Marketing API, and specialized endpoints for various services like Messenger and Live Video. Right now, we are going to get the Graph API, but the others are acquired in the same way.
Facebook의 API에는 그래프 API, 마케팅 API, 메신저 및 라이브 비디오와 같은 다양한 서비스를 위한 특수 엔드포인트가 포함됩니다. 지금은 그래프 API를 구하겠지만 나머지도 같은 방식으로 구합니다.
Steps to acquire the Facebook API
Facebook API를 획득하는 단계
1. Create an app
1. 앱 만들기
Create a developer account at Meta for Developers (facebook.com).
Meta for Developers(facebook.com)에서 개발자 계정을 만드세요.
Once you have an account, visit the Meta for Developers home page and select My Apps from the top right of the screen.
계정이 있으면 Meta for Developers 홈 페이지를 방문하여 화면 오른쪽 상단에서 내 앱을 선택하세요.
The next screen will show you any apps you have already created, if any, and you should see a green Create App button that you want to click.
다음 화면에는 이미 생성한 모든 앱이 표시되며, 클릭하고 싶은 녹색 앱 생성 버튼이 표시됩니다.
The next screen will ask you if you want to connect a business portfolio, or you can select – I don't want to connect a business portfolio yet.
다음 화면에서는 비즈니스 포트폴리오를 연결할지 묻는 메시지가 표시됩니다. 또는 선택할 수 있습니다. 아직 비즈니스 포트폴리오를 연결하고 싶지 않습니다.
The next page has several options, but for now, we can select – Other.
다음 페이지에는 여러 가지 옵션이 있지만 지금은 기타를 선택할 수 있습니다.
The next page will ask you to select an app type, and we can select – Business.
다음 페이지에서는 앱 유형을 선택하라는 메시지가 표시되며 비즈니스를 선택할 수 있습니다.
On the next page, you will add an app name, enter an email, and choose – No business portfolio selected.
다음 페이지에서 앱 이름을 추가하고 이메일을 입력한 후 – 선택한 비즈니스 포트폴리오 없음을 선택합니다.
Choose – Create app, then reenter your password.
– 앱 만들기를 선택한 다음 비밀번호를 다시 입력하세요.
You will now see a page that asks you to add products to your app. Choose – Instagram (which will work with Facebook) by clicking “Set up.”
이제 앱에 제품을 추가하라는 페이지가 표시됩니다. "설정"을 클릭하여 Instagram(Facebook과 함께 작동)을 선택합니다.
On the left side of the next screen, select – API setup with Facebook login. Then select “add product” to go back to the original screen.
다음 화면 왼쪽에서 – Facebook 로그인으로 API 설정을 선택하세요. 그런 다음 "제품 추가"를 선택하여 원래 화면으로 돌아갑니다.
Now you want to add Facebook Login for Business by clicking “Set up.” Then, “Save changes.”
이제 “설정”을 클릭하여 비즈니스용 Facebook 로그인을 추가하고 싶습니다. 그런 다음 '변경 사항을 저장하세요.'
2. Review app features
2. 앱 기능 검토
After you create your app, you can review its features and permissions by selecting “App Review” on the left side of the screen and then choosing – Permissions and Features. Most have standard access, and we are going to leave them for our purposes, but you may need to change some of these to advanced access if a lot of people will be using the app. To use advanced access, you will need to verify your business.
앱을 만든 후 화면 왼쪽에서 "앱 검토"를 선택한 다음 – 권한 및 기능을 선택하여 기능과 권한을 검토할 수 있습니다. 대부분은 표준 액세스 권한을 갖고 있으며 목적을 위해 그대로 두겠습니다. 그러나 많은 사람들이 앱을 사용할 경우 일부 기능을 고급 액세스로 변경해야 할 수도 있습니다. 고급 액세스를 사용하려면 비즈니스를 인증해야 합니다.
3. Generate your access token
3. 액세스 토큰 생성
You will need to enter the access token into your Python script or other coding project to make posts, look at stats, and more using the app we just created. To get the token, follow these steps:
방금 만든 앱을 사용하여 게시물을 작성하고 통계를 확인하는 등의 작업을 수행하려면 Python 스크립트 또는 기타 코딩 프로젝트에 액세스 토큰을 입력해야 합니다. 토큰을 얻으려면 다음 단계를 따르세요.
Choose “Graph API Explorer” under “Tools” at the top of the page.
페이지 상단의 "도구"에서 "그래프 API 탐색기"를 선택합니다.
Ensure that the app you just created is the “Meta App” on the right side of the screen.
방금 생성한 앱이 화면 오른쪽의 “Meta App”인지 확인하세요.
Directly under that, you will need to add the permissions you want to use from the review app section. You can choose as many as you want by typing in the name or using the drop box, but for now, we'll just go with pages_show_list, Instagram_content_publish, and Instagram_basic. These are the things you will be able to do using your Python script or other code, so take time to go through them and get what you need.
그 바로 아래 앱 리뷰 섹션에서 사용하려는 권한을 추가해야 합니다. 이름을 입력하거나 드롭 상자를 사용하여 원하는 만큼 선택할 수 있지만 지금은 페이지_쇼_목록, Instagram_content_publish 및 Instagram_basic을 사용하겠습니다. 이러한 작업은 Python 스크립트나 다른 코드를 사용하여 수행할 수 있으므로 시간을 내어 이를 살펴보고 필요한 것을 얻으십시오.
When the permissions are selected, click – Generate Access Token
권한이 선택되면 – 액세스 토큰 생성을 클릭하십시오.
Next, you will see a list of all of the pages the app can potentially access. If you have several, you can select them individually or choose “Opt in to all current and future Pages” to allow your app and scripts to access everything. After choosing, you will do the same for Instagram pages.
다음으로, 앱이 잠재적으로 액세스할 수 있는 모든 페이지 목록이 표시됩니다. 여러 개가 있는 경우 개별적으로 선택하거나 "현재 및 미래의 모든 페이지에 옵트인"을 선택하여 앱과 스크립트가 모든 것에 액세스할 수 있도록 허용할 수 있습니다. 선택한 후에는 Instagram 페이지에 대해서도 동일한 작업을 수행합니다.
You will then review the app and click save.
그런 다음 앱을 검토하고 저장을 클릭합니다.
You will now see your access token near the top right of the screen, and you can copy it to use in your scripts. However, it only lasts a few hours before you'll need to regenerate it by clicking generate access token. To make it last about two months, copy the access token and open “Access Token Debugger” under “Tools” at the top of the page.
이제 화면 오른쪽 상단에 액세스 토큰이 표시되며 이를 복사하여 스크립트에 사용할 수 있습니다. 그러나 액세스 토큰 생성을 클릭하여 다시 생성해야 하기 전까지는 몇 시간만 지속됩니다. 약 2개월 동안 지속되도록 하려면 액세스 토큰을 복사하고 페이지 상단의 “도구”에서 “액세스 토큰 디버거”를 엽니다.
Paste your token into the empty field on the new page and click – Debug
새 페이지의 빈 필드에 토큰을 붙여넣고 – 디버그를 클릭하세요.
Next, click Extend Access Token for the new access token that you can use in your projects.
다음으로, 프로젝트에서 사용할 수 있는 새 액세스 토큰에 대해 액세스 토큰 확장을 클릭하세요.
YOU DID IT!
당신이 해냈어요!
This guide is part of
이 가이드는 다음의 일부입니다.
부인 성명:info@kdj.com
제공된 정보는 거래 조언이 아닙니다. kdj.com은 이 기사에 제공된 정보를 기반으로 이루어진 투자에 대해 어떠한 책임도 지지 않습니다. 암호화폐는 변동성이 매우 높으므로 철저한 조사 후 신중하게 투자하는 것이 좋습니다!
본 웹사이트에 사용된 내용이 귀하의 저작권을 침해한다고 판단되는 경우, 즉시 당사(info@kdj.com)로 연락주시면 즉시 삭제하도록 하겠습니다.
































