An Overview


In this blog, we will demonstrate how you can publish your LinkedIn posts automatically using the Postman application. Automating LinkedIn posts can save time and ensure consistent content sharing without manual involvement.


Let's dive into the step-by-step process to achieve this automation using the following points:.


LinkedIN Automation


Step 1: Set Up Your Google Sheet:


First, you need to open up your Google Sheet, where you have listed your LinkedIn publishing schedule. For example, you have scheduled two posts with captions and images to be published in your Google Sheet.


Step 2: Modify the Google Sheet Script


After scheduling your LinkedIn Post Schedule Google Sheet, you have to make it automated. For this, click on the โ€œExtensionโ€ button and navigate to the coding section of the Google spreadsheet.


In this coding section, you need to replace the Google Sheet ID and its name with your own sheetโ€™s credentials. Additionally, have to add your LinkedIn App ID in the code twice: once in front of โ€œurn:li:person:โ€ next to โ€œownerโ€ and another in front of โ€œurn:li:person:โ€ next to โ€œauthorโ€.


Step 3: Obtain LinkedIn Credentials


Here, we will get the credentials for LinkedIn to auto-publish the post by replacing them in the coding section.


For this, go to Google and browse โ€œLinkedIn Developer.โ€. After browsing, open the first link on the Google search results page to open up the platform.


Next, click on the โ€œMy Appsโ€ option, and then click on the โ€œCreate Appโ€ option. Here, you have to fill out the details, like giving an appropriate name to the โ€œApp Nameโ€ field, adding your organizationโ€™s LinkedIn profile to the โ€œLinkedIn Pageโ€, uploading your organizationโ€™s logo, etc. Finally, agree to the legal terms, click on the โ€œCreate Appโ€ button, and create your LinkedIn app for automation.


Step 4: Configure App Permissions


Next to creating your app, you have to configure your app permissions. For which, you'll see the available permissions. But for you, only two accesses will be active, one for โ€œto share your post on LinkedIn automaticallyโ€ and another for โ€œto sign in with your LinkedIn page.โ€.


For further information, go to the โ€œSettingsโ€ option, click on the โ€œverifyโ€ button for page verification, and generate the URL. Next to this, copy the verified URL and click on the โ€œIโ€™m doneโ€ button.


Step 5: Generate Access Token


Now, go back to the app's settings, click on the โ€œAuthโ€ button, and then select โ€œAuth 2.0 Toolsโ€ from the side panel. Move to the โ€œCreate Tokenโ€ option, which will take you back to the coding section. Find the โ€œaccess token textโ€ and paste the copied URL within the quotation marks.


Step 6: Use Postman for API Requests


To terminate the process, go to Google and browse for "Postman.com," click on the โ€œWorkspacesโ€ option from the top menu, and open โ€œMy Workspace.โ€. Right next, click on the LinkedIn profile URL that is showing on the sidebar next to "Get.โ€.


Now, paste the LinkedIn app URL, which you can find in your LinkedIn documentation, or copy it directly from the description box. Then, go to the โ€œAuthorizationโ€ tab and paste the โ€œLinkedIn Generated URLโ€ in the description box. Additionally, click on the โ€œSet as Variableโ€ button, then the โ€œSendโ€ button to get the credentials. Here, you need to copy the โ€œLinkedIn App Idโ€ shown in front of "Subject.โ€


Step 7: Finalize the Script


Here, you have to take a step back and switch to the coding section and paste the โ€œLinkedIn App Idโ€ in front of โ€œurn:li:person:โ€ next to โ€œownerโ€ and "author.โ€. In addition to this, save the project and click on the โ€œRunโ€ button at the top of the page.


Step 8: Set Up Triggers


In this step, we will set up the trigger from the trigger setting by clicking on the trigger button next to the clock icon. The first thing we will do here is delete all the past added triggers, if there are any. To add the new one, you have to click on the โ€œAdd triggerโ€ button at the bottom right corner.


Further, you have to set all the functions by selecting the following options:

  • In Function: set up โ€œUploadimageToLinkedinโ€

  • In Deployment: set up "Head.โ€

  • In Event source: set up โ€œTime-drivenโ€

  • Type of time: set up โ€œDaytimerโ€

  • Time of day: set up โ€œ10 am to 11 amโ€

Click the โ€œSaveโ€ button to set the trigger, which will handle the LinkedIn post publishing automation.


Step 9: Run the Code


Run the code again by clicking the โ€œRunโ€ button. You should see the โ€œexecutionโ€ starting and completing within seconds.


Step 10: Verify the Automation


Finally, return to your LinkedIn post-schedule spreadsheet to verify that the images and their respective captions have been uploaded to your LinkedIn account as scheduled.

Conclusion


By following these steps, you can automate your LinkedIn posts using Google Sheets and PostMan. This setup ensures that your content is posted consistently and efficiently, without the need for manual intervention. Enjoy your newfound productivity and streamlined workflow!


Related Posts:

How to Schedule Bulk Emails from Google Sheets Using Apps Script

Avoid Duplicate Entries in Google Sheets using Google Apps Script Automation.

Convert Your โ€“ Google Sheet into API in 2 Minutes | Apps script! | JSON