0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00
logto/packages/connectors/connector-facebook/src/constant.ts
Charles Zhao 98bf0da8ff
fix(cli): translate command (#4459)
* fix(cli): translate command

* refactor(cli): add lint util method
2023-09-13 08:12:43 +00:00

64 lines
2.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { ConnectorMetadata } from '@logto/connector-kit';
import { ConnectorPlatform, ConnectorConfigFormItemType } from '@logto/connector-kit';
/**
* Note: If you do not include a version number we will default to the oldest available version, so it's recommended to include the version number in your requests.
* https://developers.facebook.com/docs/graph-api/overview#versions
*/
export const authorizationEndpoint = 'https://www.facebook.com/v13.0/dialog/oauth';
export const accessTokenEndpoint = 'https://graph.facebook.com/v13.0/oauth/access_token';
/**
* Note: The /me node is a special endpoint that translates to the object ID of the person or Page whose access token is currently being used to make the API calls.
* https://developers.facebook.com/docs/graph-api/overview#me
* https://developers.facebook.com/docs/graph-api/reference/user#Reading
*/
export const userInfoEndpoint = 'https://graph.facebook.com/v13.0/me';
export const scope = 'email,public_profile';
export const defaultMetadata: ConnectorMetadata = {
id: 'facebook-universal',
target: 'facebook',
platform: ConnectorPlatform.Universal,
name: {
en: 'Facebook',
'zh-CN': 'Facebook',
'tr-TR': 'Facebook',
ko: 'Facebook',
},
logo: './logo.svg',
logoDark: null,
description: {
en: 'Facebook is a worldwide social media platform with billions of users.',
'zh-CN': 'Facebook 是有数十亿用户的社交平台。',
'tr-TR': 'Facebook, en aktif kullanıcılara sahip dünya çapında bir sosyal medya platformudur.',
ko: '페이스북은 가장 활동적인 사용자를 가진 세계적인 소셜 미디어 플랫폼입니다.',
},
readme: './README.md',
formItems: [
{
key: 'clientId',
type: ConnectorConfigFormItemType.Text,
required: true,
label: 'Client ID',
placeholder: '<client-id>',
},
{
key: 'clientSecret',
type: ConnectorConfigFormItemType.Text,
required: true,
label: 'Client Secret',
placeholder: '<client-secret>',
},
{
key: 'scope',
type: ConnectorConfigFormItemType.Text,
required: false,
label: 'Scope',
placeholder: '<scope>',
description:
"The `scope` determines permissions granted by the user's authorization. If you are not sure what to enter, do not worry, just leave it blank.",
},
],
};
export const defaultTimeout = 5000;