Why isn't my custom app installing in the store despite correct permissions?

sushil1
Shopify Partner
4 0 0

i have  created the  custom app when we generate that link did not work . It show the  the message of dont have the permission. 

link : https://duxton-us.myshopify.com/admin/oauth/install_custom_app?client_id=d45c640a7e1dc483fecfccef3e2...

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.

 

 

 

Reply 1 (1)

tecoektamerai
Shopify Partner
66 5 17

Hello @sushil1 

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);

// Redirect
header("Location: " . $install_url);
die();