i have created the custom app when we generate that link did not work . It show the the message of dont have the permission.
but i have give all the permission after that it show me same message . can you suggest me the solution why this is not set up in the store.
Try to add the below code in install file .
$shop = "shop url";
$api_key = "your api key";
$scopes = "read_orders,write_products,read_products,read_product_listings,write_script_tags,read_themes,write_themes";
$redirect_uri = "generate token file path";
$install_url = "https://" . $shop . "/admin/oauth/authorize?client_id=" . $api_key . "&scope=" . $scopes . "&redirect_uri=" . urlencode($redirect_uri);
header("Location: " . $install_url);