{"id":5469,"date":"2023-01-13T21:57:35","date_gmt":"2023-01-13T16:27:35","guid":{"rendered":"https:\/\/www.suramya.com\/blog\/?p=5469"},"modified":"2023-01-13T21:57:35","modified_gmt":"2023-01-13T16:27:35","slug":"fixing-autopost-to-linkedin-not-working-via-social-networks-auto-poster","status":"publish","type":"post","link":"https:\/\/www.suramya.com\/blog\/2023\/01\/fixing-autopost-to-linkedin-not-working-via-social-networks-auto-poster\/","title":{"rendered":"Fixing autopost to LinkedIn not working via  Social Networks Auto-Poster"},"content":{"rendered":"<p>A few days ago my authentication token that allowed Social Networks Auto-Poster to post my blog entries automatically expired (I can only authorize for a max of 2 months at a time). Usually the fix is quite simple, I just go to the account settings in the Plugin and then click on &#8216;Authorize Your LinkedIn Account (without Marketing API)&#8217;, after which I just have to authenticate using my LinkedIn password select Yes and then I am done. This time however, when I clicked on the Authorize connection button the system would redirect me to www.suramya.com\/blog instead of the Plugin page which meant that the authentication process couldn&#8217;t complete. I spent a few hours trying to troubleshoot and for the life of me I couldn&#8217;t figure out the problem. I even tried installing another plugin but faced the same issue over there as well. In the end I decided to take a break and crash for the night as I was going nowhere. <\/p>\n<p>Today I started looking at the problem again and was going to raise a support ticket with the plugin author to have them take a look at the issue and decided to check the FAQs just to ensure I didn&#8217;t miss anything obvious. The first entry in the FAQ talked about what to do if the plugin was redirecting to a &#8220;Blank Page&#8221; or an error page, according to the FAQ this could be caused by certain plugins and the fix was to disable the plugin, authorize and then re-enable them. <\/p>\n<p>The last plugin I had installed was to Autopost my blog posts to Mastodon so I disabled the plugin and then tried authorizing the app again. To my utter delight the system immediately authorized the connection and I was able to make a test post successfully. <\/p>\n<p>The moral of the story is that you should always check the documentation when something is not working rather than trying various things randomly. <\/p>\n<p>Well this is all for now. Will post more later.<\/p>\n<p>&#8211; Suramya<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago my authentication token that allowed Social Networks Auto-Poster to post my blog entries automatically expired (I can only authorize for a max of 2 months at a time). Usually the fix is quite simple, I just go to the account settings in the Plugin and then click on &#8216;Authorize Your LinkedIn [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":""},"categories":[24,2],"tags":[],"class_list":["post-5469","post","type-post","status-publish","format-standard","hentry","category-knowledgebase","category-techie-stuff"],"_links":{"self":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/5469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/comments?post=5469"}],"version-history":[{"count":1,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/5469\/revisions"}],"predecessor-version":[{"id":5470,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/posts\/5469\/revisions\/5470"}],"wp:attachment":[{"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/media?parent=5469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/categories?post=5469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suramya.com\/blog\/wp-json\/wp\/v2\/tags?post=5469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}