<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [WEB API] Accept button not working on user data's authorization page in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/6835720#M17311</link>
    <description>&lt;P&gt;It seems like the issue could be related to the button’s event listener not being reattached when the user revisits the page. Try checking if the event handler is being removed or if the button is disabled after the first click. Also, inspect the console for any JavaScript errors and verify if there’s any caching issue causing the button to become unresponsive. You might also try forcing a re-render or resetting the state when the user navigates back to the page&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Luxury Car Accessories Shop in Dubai" href="https://douradoautoservice.com/shop/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Luxury Car Accessories Shop in Dubai&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Mar 2025 15:41:38 GMT</pubDate>
    <dc:creator>ameliaeva01</dc:creator>
    <dc:date>2025-03-15T15:41:38Z</dc:date>
    <item>
      <title>[WEB API] Accept button not working on user data's authorization page</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/5567449#M8913</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Macbook Pro mid 2014&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MacOs Big Sur 11.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm bulding a PHP/Symfony app which uses the WebAPI.&lt;/P&gt;&lt;P&gt;So I perform the first step to initiate the dialog with the API :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;$state = $session-&amp;gt;generateState();
    $options = [
    'scope' =&amp;gt; [
        'playlist-read-private',
        'user-modify-playback-state',
        'user-read-playback-state',
    ],
    'state' =&amp;gt; $state,
    'show_dialog' =&amp;gt; true
                ];

    $_SESSION['scope']=serialize($options['scope']);
    $_SESSION['state']=$state;

    // finally all data of the session are stored in a session variable
echo $session-&amp;gt;getAuthorizeUrl($options);
header('Location: ' . $session-&amp;gt;getAuthorizeUrl($options));
die();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so the user is redirected to the page where he has to authorize or not the app to access his data. There are two buttons on this page : one accept button and one cancel button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is with the accept button&amp;nbsp; : it does work once. After that if the user comes back on the page, the button is non more active. I mean if you click on the button nothing happens.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing the option "showdialog" to false. Here's what happens when doing so : the first time after the change the button works, the second time and the other times it fails... Same behaviour when I change from false to true...&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 09:26:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/5567449#M8913</guid>
      <dc:creator>upgrader-dev</dc:creator>
      <dc:date>2023-04-21T09:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: [WEB API] Accept button not working on user data's authorization page</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/5577209#M9143</link>
      <description>&lt;P&gt;In case someone finds this I found the cause of this issue : my way of dealing with $_SESSION variable in my symfony php app. Nothing about Spotify&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 09:35:49 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/5577209#M9143</guid>
      <dc:creator>upgrader-dev</dc:creator>
      <dc:date>2023-05-08T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: [WEB API] Accept button not working on user data's authorization page</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/6186174#M14442</link>
      <description>&lt;P&gt;That's an amazing Solution, Thanks Dear !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://douradocars.com/" target="_self"&gt;Exotic Car Dealership Dubai&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 10:46:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/6186174#M14442</guid>
      <dc:creator>DouradoCars</dc:creator>
      <dc:date>2024-07-15T10:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: [WEB API] Accept button not working on user data's authorization page</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/6835720#M17311</link>
      <description>&lt;P&gt;It seems like the issue could be related to the button’s event listener not being reattached when the user revisits the page. Try checking if the event handler is being removed or if the button is disabled after the first click. Also, inspect the console for any JavaScript errors and verify if there’s any caching issue causing the button to become unresponsive. You might also try forcing a re-render or resetting the state when the user navigates back to the page&lt;BR /&gt;&lt;BR /&gt;&lt;A title="Luxury Car Accessories Shop in Dubai" href="https://douradoautoservice.com/shop/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Luxury Car Accessories Shop in Dubai&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 15:41:38 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/WEB-API-Accept-button-not-working-on-user-data-s-authorization/m-p/6835720#M17311</guid>
      <dc:creator>ameliaeva01</dc:creator>
      <dc:date>2025-03-15T15:41:38Z</dc:date>
    </item>
  </channel>
</rss>

