Switch LinkedIn scope to w_member_social (personal profile)

w_organization_social requires Marketing Developer Platform approval.
Org page scope kept as a comment for when/if that access is granted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Bashy 2026-05-28 12:56:49 +03:00
parent ac5b82c381
commit 9b5bf89d11

View file

@ -21,7 +21,8 @@ $url = 'https://www.linkedin.com/oauth/v2/authorization?' . http_build_query([
'client_id' => $client_id,
'redirect_uri' => $redirect_uri,
'state' => $state,
'scope' => 'w_organization_social openid profile',
// 'scope' => 'w_organization_social openid profile', // org page — requires Marketing Developer Platform approval
'scope' => 'w_member_social openid profile',
]);
echo json_encode(['url' => $url]);