• Resolved mikemac29

    (@mikemac29)


    Was excited to see the option to select a section when publishing. Unfortunately it was short lived when I realized that no matter what section I selected in the Publish window, all of the articles wound up in the Main section.

    Don’t see any changes in the settings window that I might have missed, but it does not appear to be working as planned.

    https://www.ads-software.com/plugins/publish-to-apple-news/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    This is being investigated.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    This is fixed in version 1.1.1, which was just released.

    Thread Starter mikemac29

    (@mikemac29)

    Awesome, thanks!

    It is still not working for me. Here is a sample json

    {
      "version": "1.1",
      "identifier": "post-170379",
      "language": "en",
      "title": "Afghanistan blasts Pakistan for spawning global terror through Taliban",
      "documentStyle": {
        "backgroundColor": "#FFFFFF"
      },
      "layout": {
        "columns": 7,
        "width": 1024,
        "margin": 100,
        "gutter": 20
      },
      "components": [
        {
          "role": "title",
          "text": "Afghanistan blasts Pakistan for spawning global terror through Taliban",
          "textStyle": "default-title"
        },
        {
          "role": "container",
          "layout": "headerContainerLayout",
          "style": {
            "fill": {
              "type": "image",
              "URL": "bundle:\/\/Afghanistan-blasts-Pakistan-for-spawning-global-terror-through-Taliban.png",
              "fillMode": "cover"
            }
          },
          "behavior": {
            "type": "background_parallax"
          }
        },
        {
          "role": "byline",
          "text": "by Gopi | May 11, 2016 | 11:27 PM",
          "textStyle": "default-byline",
          "layout": "byline-layout"
        },
        {
          "role": "body",
          "text": "**By Arul Louis**\n\nUnited Nations, May 12 (IANS) Afghanistan has blasted Pakistan for spawning global extremist terror by promoting the Taliban, \"the precursor of today's terrorists\" rampaging across the world, and called for targeting those responsible for it \"within state structures.\"\n\n\"It was the Taliban and their backers who characterised the kind of terror that we witness today from various violent extremist groups,\" Afghanistan's Deputy Permanent Representative Nazifullah Salarzai said Wednesday at the Security Council. \"One can easily trace how the Taliban facilitated the creation of al-Qaida, Daish, and their ilk along with the divisive, hateful ideology.\"\n\nWhile avoiding any direct mention of Pakistan, he made clear Islamabad's role saying that \"circles within state structures outside of our frontiers\" used ideology and violent behavior to promote the Taliban in pursuit of their political objectives.\n\n\"Targeting the promoters and drivers of such policies, who use violence in pursuit of political objectives within the state structures, especially in the security apparatus, is absolutely crucial to deal with the threats of violent extremism,\" Salarzai declared.\n\nWednesday's Council debate was on \"Countering the Narratives and Ideologies of Terrorism.\" But Salarzai said in Afghanistan's case the focus should instead be on the initiation, enabling, and facilitation role of political actors and their use of radical ideology for short term gains.\"\n\nTracing the antecedents of the current terrorist organisations, he said, \"The creation of the Taliban in Afghanistan in 1994 opened the current tragic chapter of terrorism in the world. Before the crafting of the Taliban, terror in its current behavior and form was little known to the world. The Taliban came into existence before groups like aI-Qaida, aI-Shabab, Boko Haram and Daish gained notoriety.\"\n\nTo drive home Pakistan's role in promoting the Taliban and setting off the chain reaction of global terror, he diplomatically posed a series of rhetorical questions: \"So the question is how and why did the Taliban come into being? We need to ask ourselves how did they learn to drive tanks and fly jets overnight, stage conventional warfare, and capitalize on prolonged political conflict in our country? Who trained them? Who provided them with supplies? Who financed them? Who provided them with safe havens and orchestrated their spring offensives year after year?\"\n\n\"Tension between military and civilian control in politics, an inherent \n\n struggle emerging from militarism in society,\" was one of the factors behind \"circles within state structures\" in the neighbor backing the Taliban, Salarzai said.\n\nAnother was the regional rivalry between nations coupled with \"excessive anxiety and suspicion,\" he said.\n\n\"Let us not forget,\" Salarzai stressed, \"that it was under the Taliban that Afghanistan became the jumping board for international terrorism, when thousands of young men received training and logistical support in terrorist camps. This was the precursor of today's terrorists carrying out deadly attacks in Asia, Europe, US, Middle East, Africa and elsewhere.\"\n\nThe repeated strong criticism of Islamabad in a global forum brings to the fore Afghanistan's split with Pakistan after President Ashraf Ghani's conciliatory approach failed.\n\nWhen he was elected two years ago, Ghani had hoped its southern neighbor would help rein in the Taliban and bring it to the negotiating tables. But he felt betrayed by Islamabad when it emerged amid preparations for talks with the Taliban that its leader Mohammed Omar had died in Karachi in 2013 and Pakistani leaders had withheld the crucial information from Kabul.\n\n(Arul Louis can be reached at [email protected])",
          "format": "markdown",
          "textStyle": "dropcapBodyStyle",
          "layout": "body-layout"
        }
      ],
      "componentTextStyles": {
        "dropcapBodyStyle": {
          "textAlignment": "left",
          "fontName": "AvenirNext-Regular",
          "fontSize": 18,
          "lineHeight": 24,
          "textColor": "#000000",
          "linkStyle": {
            "textColor": "#428bca"
          },
          "dropCapStyle": {
            "numberOfLines": 2,
            "numberOfCharacters": 1,
            "fontName": "Georgia-Bold",
            "textColor": "#000000"
          }
        },
        "default-body": {
          "textAlignment": "left",
          "fontName": "AvenirNext-Regular",
          "fontSize": 18,
          "lineHeight": 24,
          "textColor": "#000000",
          "linkStyle": {
            "textColor": "#428bca"
          }
        },
        "default-title": {
          "fontName": "AvenirNext-Bold",
          "fontSize": 48,
          "lineHeight": 52,
          "textColor": "#000000",
          "textAlignment": "left"
        },
        "default-byline": {
          "textAlignment": "left",
          "fontName": "AvenirNext-Medium",
          "fontSize": 17,
          "textColor": "#53585f"
        }
      },
      "componentLayouts": {
        "body-layout": {
          "columnStart": 0,
          "columnSpan": 5,
          "margin": {
            "top": 25,
            "bottom": 25
          }
        },
        "headerContainerLayout": {
          "columnStart": 0,
          "columnSpan": 7,
          "ignoreDocumentMargin": true,
          "minimumHeight": "50vh",
          "margin": {
            "top": 0,
            "bottom": 25
          }
        },
        "byline-layout": {
          "columnStart": 0,
          "columnSpan": 7,
          "margin": {
            "top": 10,
            "bottom": 10
          }
        }
      },
      "metadata": {
        "excerpt": "By Arul Louis United Nations, May 12 (IANS) Afghanistan has blasted Pakistan for spawning global extremist terror by promoting the Taliban, \"the precursor of today's terrorists\" rampaging across the world, and called for targeting those responsible for it \"within state structures.\" \"It was the Taliban and their backers who characterised the kind of terror that...",
        "thumbnailURL": "bundle:\/\/Afghanistan-blasts-Pakistan-for-spawning-global-terror-through-Taliban.png",
        "dateCreated": "2016-05-11T23:27:39+00:00",
        "dateModified": "2016-05-11T23:27:39+00:00",
        "datePublished": "2016-05-11T23:27:39+00:00",
        "canonicalURL": "http:\/\/www.socialnews.xyz\/2016\/05\/afghanistan-blasts-pakistan-for-spawning-global-terror-through-taliban\/",
        "generatorIdentifier": "publish-to-apple-news",
        "generatorName": "Publish to Apple News",
        "generatorVersion": "1.1.1"
      },
      "advertisingSettings": {
        "frequency": 10,
        "layout": {
          "margin": {
            "top": 15,
            "bottom": 15
          }
        }
      }
    }
    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    The JSON isn’t relevant because the sections are set as part of the API request. Please ensure you’ve updated to version 1.1.1, turn on debug mode and post the debug email that you get when you publish an article.

    I already upgrade to 1.1.1 But the generated file shows version as 1.1 and if you look in at the metadata generated version it is 1.1.1. Here is the debug file

    Array
    (
        [headers] => Array
            (
                [date] => Thu, 12 May 2016 08:36:23 GMT
                [request-id] => f55f9d66-697d-4f60-847c-d0250e0d74bd
                [location] => https://u48r14.digitalhub.com/articles/9f5ef493-c44f-4430-85fb-11ee4576270e
                [content-type] => application/json;charset=UTF-8
            )
    
        [body] => {"data":{"createdAt":"2016-05-12T08:36:28Z","modifiedAt":"2016-05-12T08:36:28Z","id":"9f5ef493-c44f-4430-85fb-11ee4576270e","type":"article","shareUrl":"https://apple.news/An170k8RPRDCF-xHuRXYnDg","links":{"channel":"https://u48r14.digitalhub.com/channels/6ba81d00-dc7d-4e02-97b5-1cbb18a1d38a","self":"https://u48r14.digitalhub.com/articles/9f5ef493-c44f-4430-85fb-11ee4576270e","sections":["https://u48r14.digitalhub.com/sections/2147dbfd-016c-39a4-b448-2ac510ada05c"]},"document":{"version":"1.1","identifier":"post-170538","language":"en","title":"Supreme is Free for Differently Abled Persons","documentStyle":{"backgroundColor":"#FFFFFF"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"title","text":"Supreme is Free for Differently Abled Persons","textStyle":"default-title"},{"role":"container","layout":"headerContainerLayout","style":{"fill":{"type":"image","URL":"bundle://Supreme-Free.jpg","fillMode":"cover"}},"behavior":{"type":"background_parallax"}},{"role":"byline","text":"by Gopi | May 12, 2016 | 4:34 AM","textStyle":"default-byline","layout":"byline-layout"},{"role":"photo","URL":"bundle://Supreme-Free.jpg","layout":"full-width-image"},{"role":"body","text":"Sai Dharam Tej and Rashi Khanna's 'Supreme' was released on May 5th to a superb response across all areas. Presented by Dil Raju,directed by Anil Ravipudi and produced by Sireesh on Sri Venkateswara Creations banner, the film is collecting excellent revenues in all areas.\n\nFrom this Friday onwards, 'Supreme' movie will be available free of cost for differently abled persons in all single screen theaters across the Telugu states. A differently abled person and one companion can watch 'Supreme' free of cost.\n\n\"A positive attitude and mental strength will help us face whatever situation life throws at us. In \"Supreme\", the fight with differently abled persons is winning tremendous response. We have organised a special show for differently abled persons in Prasad Labs and the entire team cannot forget the way in which they cheered when that fight came on screen.\n\nA differently abled person and one companion can watch 'Supreme' free of cost from this Friday onwards across Andhra Pradesh and Telangana. This decision has been taken to send out a positive message to society\", said producer Dil Raju.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"}],"componentTextStyles":{"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"dropCapStyle":{"numberOfLines":2,"numberOfCharacters":1,"fontName":"Georgia-Bold","textColor":"#000000"}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"}},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":17,"textColor":"#53585f"}},"componentLayouts":{"full-width-image":{"columnStart":0,"columnSpan":7,"margin":{"top":25,"bottom":25}},"body-layout":{"columnStart":0,"columnSpan":5,"margin":{"top":25,"bottom":25}},"headerContainerLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true,"minimumHeight":"50vh","margin":{"top":0,"bottom":25}},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"Sai Dharam Tej and Rashi Khanna's 'Supreme' was released on May 5th to a superb response across all areas. Presented by Dil Raju,directed by Anil Ravipudi and produced by Sireesh on Sri Venkateswara Creations banner, the film is collecting excellent revenues in all areas. From this Friday onwards, 'Supreme' movie will be available free of...","thumbnailURL":"bundle://Supreme-Free.jpg","dateCreated":"2016-05-12T04:34:32+00:00","dateModified":"2016-05-12T04:36:19+00:00","datePublished":"2016-05-12T04:34:32+00:00","canonicalURL":"https://www.socialnews.xyz/2016/05/supreme-is-free-for-differently-abled-persons/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.1.1"},"advertisingSettings":{"frequency":10,"layout":{"margin":{"top":15,"bottom":15}}}},"revision":"AAAAAAAAAAD//////////w==","state":"PROCESSING","accessoryText":null,"title":"Supreme is Free for Differently Abled Persons","maturityRating":null,"warnings":null,"isCandidateToBeFeatured":false,"isSponsored":false,"isPreview":false,"isDevelopingStory":false}}
        [response] => Array
            (
                [code] => 201
                [message] => Created
    
            )
    
        [cookies] => Array
            (
            )
    
        [filename] =>
    )
    
    request meta:
    
    Array
    (
        [data] => Array
            (
                [isPreview] =>
            )
    
    )

    Didn’t work for me either.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    According to your debugging info, you’re not actually setting any sections. Can you please describe the exact steps you are taking to select sections and publish?

    I republished an article that is already published to apple news by checking the sections in the meta in the post. I selected two sections and hit update. After the update, it defaulted back to the Main section.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Sections don’t work that way, see here: https://developer.apple.com/library/ios/documentation/General/Conceptual/News_API_Ref/CreateArticle.html#//apple_ref/doc/uid/TP40015409-CH14-SW1

    The short answer is that you can’t repost an article to a section once it’s published. This will work only for new articles going forward.

    OK got it. Thank You very much. Now this leads to new issue. I don’t see the apple news meta in post editor unless I save the draft or post it. Am I doing something wrong in the settings.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    This is the intended behavior. You can’t post to Apple News unless the post has been published.

    So how do we select the sections if we have auto publish to news turned on. Thanks for all the help

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Publishing to individual sections isn’t going to work with auto publish, at least in this current version.

    OK got it. Thanks for the info.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Sections Not Working’ is closed to new replies.