0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/connector-facebook/src/constant.ts

37 lines
1.5 KiB
TypeScript
Raw Normal View History

import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-types';
/**
* 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',
type: ConnectorType.Social,
2022-05-23 04:54:05 -05:00
platform: ConnectorPlatform.Universal,
name: {
en: 'Facebook',
'zh-CN': 'Facebook',
},
logo: './logo.svg',
logoDark: null,
description: {
en: 'Provide users with the option to sign in with their Facebook account.',
'zh-CN': '为用户提供 Facebook 账号登录的选项。',
},
readme: './README.md',
configTemplate: './docs/config-template.json',
};
export const defaultTimeout = 5000;