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:
parent
ac5b82c381
commit
9b5bf89d11
1 changed files with 2 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue