moshaorui 1 сар өмнө
parent
commit
08c0dd271c

+ 1 - 1
app/Services/Smm/TwitterService.php

@@ -31,7 +31,7 @@ class TwitterService implements SmmPlatformInterface
     public function login()
     public function login()
     {
     {
         $redirectUri = env('DIST_SITE_URL') . '/dist/callback/twitter';
         $redirectUri = env('DIST_SITE_URL') . '/dist/callback/twitter';
-        $scopes = ['tweet.read','tweet.write','dm.write', 'users.read', 'offline.access','media.write']; // 需要的权限范围
+        $scopes = ['tweet.read','tweet.write','users.read','offline.access','media.write']; // 需要的权限范围
         $oauthState = bin2hex(random_bytes(16));
         $oauthState = bin2hex(random_bytes(16));
         $authUrl = 'https://twitter.com/i/oauth2/authorize?' . http_build_query([
         $authUrl = 'https://twitter.com/i/oauth2/authorize?' . http_build_query([
                 'response_type' => 'code',
                 'response_type' => 'code',