ShareShortcuts

PhotoPost

Take a photo and post to social media

blackhatteam
Fork “PhotoPost”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so blackhatteam gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
35K
Saved
2
Actions
41
Category
Photos and videos
Version
1.2
Language
EN

Take a photo and post to social media.

Do you like to post photos to social media? Would you like to be able to post photos without having to use individual apps?

PhotoPost may be just what you need.

You have the option to take a photo with your front or back camera and then select where to upload the image.

Sites Supported:

Facebook, Instagram and Twitter

*Photos are saved to the Recents folder with an option to select a photo to upload from the menu.

What's New

Version 1.2

Bug fix...

Version History
1.2 Jan 24, 2023

Bug fix...

1.1 Jan 24, 2023

Fix for iOS 16.3

1.0 Jan 20, 2023

First release

What it does

41 actions
  1. Get File
  2. If
  3. Create Folder
  4. Show Alert
  5. Open URLs
  6. Wait
  7. Text
  8. Close Tab
    com.apple.mobilesafari
  9. Show Alert
  10. Choose from Menu
  11. Choose from Menu
    Take Photo - Back Camera
  12. Take Photo
  13. Save to Photo Album
  14. Show Alert
  15. Choose from Menu
  16. Choose from Menu
    Facebook
  17. Postonfacebook
  18. Choose from Menu
    Instagram
  19. Openin
    com.burbn.instagram
  20. Choose from Menu
    Twitter
  21. Post to X
  22. Choose from Menu
    Take Photo - Front Camera
  23. Take Photo
  24. Save to Photo Album
  25. Show Alert
  26. Choose from Menu
  27. Choose from Menu
    Facebook
  28. Postonfacebook
  29. Choose from Menu
    Instagram
  30. Openin
    com.burbn.instagram
  31. Choose from Menu
    Twitter
  32. Post to X
  33. Choose from Menu
    Choose Photo To Post
  34. Select Photos
  35. Choose from Menu
  36. Choose from Menu
    Facebook
  37. Postonfacebook
  38. Choose from Menu
    Instagram
  39. Openin
    com.burbn.instagram
  40. Choose from Menu
    Twitter
  41. Post to X

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#include 'actions/documents'
#define color darkblue
#define glyph camera

const File = getFileFromFolder(, "PhotoPost", false)

if !File {
	createFolder("PhotoPost")
	confirm("Run Initial Setup? ")
	openURL("http://www.blackhatteams.com/p/photopost.html")
	wait(4)
	const Text = "PhotoPost"
	rawAction("com.apple.mobilesafari.CloseTab", {
		"AppIntentDescriptor": "",
		"target": "Text"
	})
	confirm("Setup Complete! Run Shortcut?")
}

menu nil {
item "Take Photo - Back Camera":
	const Photo = takePhoto(1, true)
	const SavedPhotoMedia = savePhoto(Photo)
	confirm("Post Photo?")
	menu nil {
	item "Facebook":
		rawAction("is.workflow.actions.postonfacebook", {
			"FacebookContent": "SavedPhotoMedia"
		})
	item "Instagram":
		rawAction("com.burbn.instagram.openin", {
			"InstagramInput": "SavedPhotoMedia"
		})
	item "Twitter":
		rawAction("is.workflow.actions.tweet", {
			"TweetInput": "{SavedPhotoMedia}"
		})
	}
item "Take Photo - Front Camera":
	takePhoto(1, true)
	savePhoto(Photo)
	confirm("Post Photo?")
	menu nil {
	item "Facebook":
		rawAction("is.workflow.actions.postonfacebook", {
			"FacebookContent": "SavedPhotoMedia"
		})
	item "Instagram":
		rawAction("com.burbn.instagram.openin", {
			"InstagramInput": "SavedPhotoMedia"
		})
	item "Twitter":
		rawAction("is.workflow.actions.tweet", {
			"TweetInput": "{}"
		})
	}
item "Choose Photo To Post":
	const Photos = selectPhotos()
	menu nil {
	item "Facebook":
		rawAction("is.workflow.actions.postonfacebook", {
			"FacebookContent": "Photos"
		})
	item "Instagram":
		rawAction("com.burbn.instagram.openin", {
			"InstagramInput": "Photos"
		})
	item "Twitter":
		rawAction("is.workflow.actions.tweet", {
			"TweetInput": "{Photos}"
		})
	}
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by blackhatteam

See All

You Might Also Like

See All
Advertisement