# Facebook

### 지원 로그인 패키지 <a href="#supported-login-packages" id="supported-login-packages"></a>

Facebook 로그인을 위핀 로그인 라이브러리와 연결하여 사용할 수 있습니다. SDK 별 로그인 라이브러리 문서를 참고하세요.

{% hint style="info" %}
위핀과 연동 가능한 모든 소셜 로그인 인증 프로바이더는 로그인 일원화를 지원합니다. 로그인 일원화를 통해 통합하려는 경우 [로그인 일원화 페이지](/login/simplified-login.md)를 참고하세요.
{% endhint %}

<table><thead><tr><th width="275">플랫폼</th><th>로그인 패키지</th></tr></thead><tbody><tr><td>Web</td><td><a href="/pages/hCKXE80aWsDBpGVZFqcs">@wepin/login-js</a></td></tr><tr><td>Flutter</td><td><a href="/pages/CUsZtt54jx1fetzWm2uH">wepin_flutter_login_lib</a></td></tr></tbody></table>

### 로그인 프로바이더 등록하기 <a href="#registering-login-providers" id="registering-login-providers"></a>

{% hint style="info" %}
모바일 앱에서 소셜 로그인을 수행하기 위해서는 워크스페이스에서 로그인 프로바이더를 등록해야 합니다. 웹 환경에서 소셜 로그인을 구축하거나 로그인 일원화를 사용할 경우에는 워크스페이스 등록 없이도 사용이 가능합니다.
{% endhint %}

1. [위핀 워크스페이스](https://workspace.wepin.io/)의 개발 도구 메뉴에서 로그인 탭으로 이동합니다.
2. 로그인 탭에서 “로그인 프로바이더 설정” 버튼을 클릭합니다.

<figure><img src="/files/4M3WsK6W1TSLlRKwbgLP" alt=""><figcaption></figcaption></figure>

3. [Meta Developer](https://developers.facebook.com/apps)에서 정보를 확인한 후, App ID와 App Secret Code 값을 워크스페이스에 입력합니다.

<figure><img src="/files/dV7xb17Y7fiCE8NkcCdm" alt=""><figcaption></figcaption></figure>

4. 필수 입력 정보를 모두 입력 후, Redirect URL이 생성되면 [Facebook APIs](https://developers.facebook.com/docs/development/create-an-app/facebook-login-use-case)를 참고하여 Redirect URL을 OAuth Provider에 등록합니다.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wepin.io/login/social-login-auth-provider/facebook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
