How to Add an Instagram iOS Widget

Posted on November 19, 2020 by Chris Duke

With the introduction of widgets in iOS 14, users can finally customize their home screen pages. You might be wondering how to add a widget to showcase your favorite Instagram account’s latest photos. Here are 15 quick and easy steps to do it.

  1. Download the free Scriptable app by Simon B. Støvring in the App Store
  2. Click the Gallery tab (bottom right)
  3. Look for “Instagram Latest Posts”
  4. Click the Get button
  5. Once the script loads, click the + button at the bottom to add it to My Scripts
  6. Now edit the script where it has “const USERS” at the top. Enter your favorite Instagram accounts like “chrisduketv” (without the @ symbol), changing the default account names provided

    const USERS = [
    ‘chrisduketv’,
    ‘petermckinnon’,
    ‘peterlindgren1’
    ]

    The format must be just like that with each username wrapped in single quotes, separated by a comma. There can be no comma before the ]. Hit the play button to test your script. It will show you any errors at the bottom of the screen.

  7. Click the Done button up at the top
  8. Go back to the Scripts tab (bottom left icon). The new “Instagram Latest Posts” should appear here now
  9. Exit the app and go back to your home screen
  10. Add the Scriptable widget to your home screen (there are 3 sizes)
  11. Click the Done button in the top right corner of the iOS home screen
  12. Long press the widget and tap Edit Widget
  13. Next to “Script”, tap “Choose”
  14. Tap “Instagram Latest Posts”
  15. Tap outside the widget settings to return to your home screen. That’s it!

The script chooses from the recent 12 photos of the accounts you’ve selected. It will automatically change to a different random photo every 5 minutes. You can tap the photo to launch Instagram and it will take you directly to that photo.

Pretty cool!

Change Number of Recent Posts

To change the number of recent posts it looks at, change the following value in the script. By default, it looks at the most recent 12 posts.

const MAX_RECENT_POSTS = 12

Change the Refresh Interval

To change the interval in which the photo is changed, change the following value in the script. By default, it’s every 5 minutes, however I’ve found that it can take longer. I think the script as at the mercy of iOS 14’s widget system.

const REFRESH_INTERVAL = 5

Change the Appearance

You can alter the appearance (showing the username, number of likes and comments) by editing the SHOW_USERNAME, SHOW_LIKES, SHOW_COMMENTS lines and changing “true” to “false”. For me, I’ve turned off the display of Likes & Comments:

const SHOW_LIKES = false
const SHOW_COMMENTS = false

so now it looks like this. Much cleaner!

I don’t recommend you change any other things in the script unless you know what you’re doing!

Pro Tip:

Want to have up to 6 Instagram widgets on a single home screen, each one showing only one account?

  1. Duplicate the “Instagram Latest Posts” script by long pressing it in the Scriptable app on the Scripts tab
  2. Edit the code to show only one account on the “const USERS” line of code
    const USERS = [
    ‘chrisduketv’
    ]
  3. Click the Config icon (lower left corner of the code edit screen)
  4. Tap the Name field to rename it
  5. Finally, add each one as a small widget to your Home Screen

If you have any questions, ask below and I’ll try to help!


No Replies to "How to Add an Instagram iOS Widget"


    Got something to say?

    Some html is OK

    This site uses Akismet to reduce spam. Learn how your comment data is processed.