Your looking at documentation for Basic Display API. Graph API does not allow refresh of long lived tokens, instead you need to create a permanent token via a System User in Business Manager, assigned to your Meta App with the appropriate assets and permissions, and generate a System User access token using an App ID, App Secret, and the system user’s generated token