Atualizar src/app/api/auth/meta/route.ts

This commit is contained in:
marciobever 2026-06-08 00:41:22 +00:00
parent d5997bb0d8
commit 61b5303ee5

View file

@ -17,14 +17,13 @@ export async function GET() {
);
}
const scopes = [
'ads_management',
'ads_read',
'business_management',
'pages_show_list',
'pages_read_engagement',
'instagram_basic',
].join(',');
const scopes = [
'ads_management',
'ads_read',
'business_management',
'pages_show_list',
'pages_read_engagement',
].join(',');
const authUrl = new URL('https://www.facebook.com/v20.0/dialog/oauth');
authUrl.searchParams.set('client_id', appId);