App not installed in store

sushil1
New Member
1 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.

 

 

 

0 Likes
tecoektamerai
Tourist
7 0 0

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

0 Likes