> ## Documentation Index
> Fetch the complete documentation index at: https://snapwidget.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I add an Instagram widget to my FlatPress website page or blog?

> Add your SnapWidget Instagram widget to a FlatPress entry or static page. First allow external iframes in FlatPress Protect.

Paste your SnapWidget code into a FlatPress entry or static page. FlatPress blocks iframes from other websites by default, so allow them first. The same steps work for Facebook, X, TikTok and YouTube widgets.

### In SnapWidget

1. [Create your widget](/docs/getting-started/create-an-instagram-widget), or open an existing widget from your [dashboard](https://snapwidget.com/dashboard).
2. Click **Get Widget**. For an existing widget, click **Update & Get Widget**.
3. In the **You're One Step Away** window, click **Copy To Clipboard**.

### In FlatPress

1. In the FlatPress admin, click **Configuration**, then **FlatPress Protect**.
2. Select **Allow embedding external content via iFrame (Not recommended)** and click **Save settings**.
3. Click **Entries** > **Write Entry** for a blog post, or **Statics** > **Write Static** for a page.
4. Paste your code into **Content** where you want the widget to show.
5. Click **Publish**.

> [!NOTE]
>
> If you see the code as text on your site, go to **Plugins** > **BBCode** and make sure **Inline HTML** is selected. Then save the entry again.

### Check your widget

Open the entry or page on your live site. The widget shows your latest Instagram posts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.