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:.
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