App reviews, troubleshooting, and recommendations
Is there any way to create an app, either (private or public) with read_publications and/or write_publications access? Does one need special approval for this access? There seems to be no visible option for these permissions when creating a private app and the usual OAUTH procedure yields an error:
Oauth error missing_shopify_permission: write_publications, read_publications
I'd like to automate publishing products to Facebook and my the Storefront API, but so far I've got nothing.
any update ?
Requesting these scopes still ends up with the same error:
Oauth error missing_shopify_permission: write_publications, read_publications
Hi mate
These scopes are currently unavailable.
You can try and request them from shopify support
Similar thread below:
Any update of this bug after one year, shopify?
still waiting....
We only need to read products that a sales channel has published. I even dont need to publish them
It is incredible that Shopify doesnt let us at least READ what products are in each channel.
it is incredible!!!!
Another vote for this. Considering that managing the channels a product is published to is an integral part of using the admin dashboard it is insane it can't be done via the admin API... especially when the functionality exists, it's just turned off for public apps.
Please Shopify allow read_publications and write_publications access for public apps! An app I was going to develop is almost unusable without this functionality.
Up until recently, this was an access scope that was limited to Shopify Plus. At some point over the past few months, it became generally available. This change may have coincided with the release of the Catalogs API, which seems to make use of this functionality. I was not able to easily find any other mention of it.
Read more:
Hi, are you sure that this is related to "I'd like to automate publishing products to Facebook" ?
In my case I want only to KNOW which products are published in each sales channel, and I can not see how this new API could help me.
Are you sure?
This can be done with GraphQL:
{
publication(id: "gid://shopify/Publication/123456") {
products(first: 10) {
edges {
node {
id
handle
}
}
}
}
}
To get the publications with GraphQL:
{
publications(first: 10) {
edges {
node {
id
name
}
}
}
}
Note: The name field in the above query is deprecated.
To check if a collection is published on a specific publication:
{
collectionByHandle(handle: "acme-widgets") {
id
handle
publishedOnPublication(publicationId: "gid://shopify/Publication/12345")
}
}
GraphQL Mutation
mutation publishablePublish($id: ID!, $input: [PublicationInput!]!) {
publishablePublish(id: $id, input: $input) {
userErrors {
field
message
}
}
}
GraphQL Variables
{
"id": "gid://shopify/Product/123456",
"input": [
{
"publicationId": "gid://shopify/Publication/123456"
}
]
}
Additional reading:
Sorry, now yes!, thanks a lot, we can, at least, read this information, great.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024