<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Notes on Templeman Creative</title>
    <link>https://templeman.io/note/</link>
    <description>Stuff I've written down so I don't forget.</description>
    <language>en</language>
    <atom:link href="https://templeman.io/note/index.xml" rel="self" type="application/rss+xml" />
    <lastBuildDate>Sat, 10 Oct 2020 19:40:55 +0000</lastBuildDate>
    <item>
      <title>How To Generate An Instagram Authentication Token</title>
      <link>https://templeman.io/note/how-to-generate-an-instagram-authentication-token/</link>
      <guid isPermaLink="true">https://templeman.io/note/how-to-generate-an-instagram-authentication-token/</guid>
      <pubDate>Sat, 10 Oct 2020 19:40:55 +0000</pubDate>
      <category>tutorials</category>
      <description>&lt;h2&gt;Why this can be confusing&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://templeman.io/note/how-to-generate-an-instagram-authentication-token/#what-well-do&quot;&gt;Jump straight to the instructions&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Since Facebook purchased Instagram in 2012, they (Facebook) have been working
to fold the popular photo-sharing app into the broader Facebook ecosystem.
Starting in 2020, the &lt;strong&gt;Instagram Legacy API&lt;/strong&gt; has been fully discontinued, and
developers who wish to interact with Instagram are now required to use either
the &lt;strong&gt;Instagram Graph API&lt;/strong&gt; or the &lt;strong&gt;Instagram Basic Display API&lt;/strong&gt;, both of
which are part of the larger &lt;strong&gt;Facebook Graph API&lt;/strong&gt;. In either case, the main
thing to know about this switch is that Instagram developer settings are no
longer managed at instagram.com. Instead, developers are required to manage
Instagram API settings under a Facebook account, at developers.facebook.com.&lt;/p&gt;
&lt;p&gt;Now, back to the two Instagram APIs. Why two, and which one do we need to
concern ourselves with if all we&#39;re trying to do is add a public Instagram
feed to our (our our client&#39;s) website? A quick look at the &lt;a href=&quot;https://developers.facebook.com/docs/instagram-api&quot;&gt;official
docs&lt;/a&gt; can help clarify the
distinction. The &lt;strong&gt;Instagram Graph API&lt;/strong&gt; &amp;quot;is intended for Instagram Businesses
and Creators who need insight into, and full control over, all of their social
media interactions.&amp;quot; Whereas the &lt;strong&gt;Instagram Basic Display API&lt;/strong&gt; &amp;quot;can be used
to access any type of Instagram account but only provides read-access to basic
data.&amp;quot;&lt;/p&gt;
&lt;p&gt;For the purposes of adding an Instagram feed to a website, the
&lt;strong&gt;Instagram Basic Display API&lt;/strong&gt; is exactly what we need.&lt;/p&gt;
&lt;h2&gt;What we&#39;ll do&lt;/h2&gt;
&lt;p&gt;In order to use the API, we&#39;ll first need to create a Facebook App. We&#39;ll then
connect this app with our Instagram account. Finally, we&#39;ll use our app to
generate an authentication token that we can use when setting up a custom
Instagram feed. Let&#39;s dive in.&lt;/p&gt;
&lt;h2&gt;1. Create a Facebook app&lt;/h2&gt;
&lt;p&gt;Head on over to &lt;a href=&quot;https://developers.facebook.com/&quot;&gt;developers.facebook.com&lt;/a&gt; and
log in (if you&#39;re already logged in to Facebook, you may be automatically
logged in under that account). Depending on your situation, you may want to
create your new app under your own personal Facebook account, or you may be
required to create it under another account - for example, if you&#39;re setting
up an Instagram feed for a client you may need to use the client&#39;s Facebook
account. Luckily, Facebook provides a granular level of control over apps on
their platform - so even if you create the app under your own personal
account, you can still provide outside access using the &lt;strong&gt;Roles&lt;/strong&gt; feature, as
we will see shortly.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-facebook-developers-landing.png&quot; alt=&quot;Facebook for Developers landing page.&quot; title=&quot;Facebook for Developers landing page&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Once logged in to Facebook for Developers, click on &lt;strong&gt;My Apps&lt;/strong&gt;, then &lt;strong&gt;Create
App&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-create-new-facebook-app.png&quot; alt=&quot;Facebook for Developers create app button.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You&#39;ll be presented with the prompt &lt;strong&gt;How are you using your app?&lt;/strong&gt;
Select the third option &lt;strong&gt;For Everything Else&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-create-app-id.png&quot; alt=&quot;Facebook for Developers create new app ID modal.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In the fields that follow, you can choose whatever you&#39;d like to be the &lt;strong&gt;App
Display Name&lt;/strong&gt;, as this won&#39;t be visible on the feed itself. The dropdown
field &lt;strong&gt;Do you have a Business Manager account?&lt;/strong&gt; should remain set to &lt;strong&gt;No
Business Manager Account selected&lt;/strong&gt;. Click &lt;strong&gt;Create App ID&lt;/strong&gt; and finish the
security check.&lt;/p&gt;
&lt;p&gt;You&#39;ll now be presented a grid of &lt;strong&gt;Products&lt;/strong&gt;. Select &lt;strong&gt;Set
Up&lt;/strong&gt; on the &lt;strong&gt;Instagram Basic Display&lt;/strong&gt; product.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-product-grid.png&quot; alt=&quot;Facebook for Developers product grid.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;This will add the Instagram Basic Display to the sidebar and present an
overview of the product. However, we haven&#39;t actually created our app yet.
Read through the details, then at the bottom select &lt;strong&gt;Create New App&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-create-new-instagram-basic-display-app.png&quot; alt=&quot;Create new Instagram Basic Display app.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;In the pop-up window, give your app a name and select &lt;strong&gt;Create App&lt;/strong&gt;. Note
that the form will complain if you try to include words related to the
Instagram or Facebook brands.&lt;/p&gt;
&lt;h2&gt;2. Add an Instagram &#39;tester&#39; account&lt;/h2&gt;
&lt;p&gt;Now it&#39;s time to designate our Instagram account as a &#39;tester&#39; account for our
new app. This will allow us to generate the long-lived access token we&#39;ll need
to link our Instagram feed to our website. On the &lt;strong&gt;Basic Display&lt;/strong&gt; page, scroll
down to the &lt;strong&gt;User Token Generator&lt;/strong&gt; section and select &lt;strong&gt;Add or Remove Instagram
Testers&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-add-app-roles.png&quot; alt=&quot;Instagram Basic Display app roles.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;This will open up the &lt;strong&gt;Roles&lt;/strong&gt; page for your app that we mentioned
above. Here you have multiple options for adding other people to your app.
Perhaps you want your client to be able to access the app - you can add them
here under the appropriate role to grant such access without worrying about
handing over the credentials to your personal Facebook account. For our needs,
we just want an access token. Select &lt;strong&gt;Add Instagram Testers&lt;/strong&gt; and enter the
username of the Instagram account you wish to add to your site. Note that only
public Instagram accounts are eligible for generating access tokens.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-add-instagram-tester.png&quot; alt=&quot;Add Instagram tester.&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;3. Accept the tester account invite on Instagram&lt;/h2&gt;
&lt;p&gt;Once you add your Instagram tester, an invitation will be sent from your app to
the Instagram account.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-instagram-tester-pending.png&quot; alt=&quot;Instagram tester pending approval.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The next step is to accept that invitation. In a new window, navigate
to Instagram and sign in to the account in question. Navigate to the Settings
menu.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-instagram-settings.png&quot; alt=&quot;Instagram account settings.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Select &lt;strong&gt;Apps and Websites&lt;/strong&gt; in the left-hand menu, then the &lt;strong&gt;Tester
Invites&lt;/strong&gt; tab. Here you will see the name of the Facebook app you created
earlier. Accept the invitation. Your Facebook app now has permission to access
this Instagram account.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-instagram-apps-websites-panel.png&quot; alt=&quot;Instagram Apps and Websites panel.&quot; /&gt;&lt;/p&gt;
&lt;h2&gt;4. Generate a long-lived access token&lt;/h2&gt;
&lt;p&gt;Now we&#39;re ready to generate the long-lived access token that we need to tie an
Instagram feed to our website. Back in our Facebook app, under Products,
select &lt;strong&gt;Instagram Basic Display&lt;/strong&gt; and under that, &lt;strong&gt;Basic Display&lt;/strong&gt;. Scroll down to
the &lt;strong&gt;User Token Generator&lt;/strong&gt; section and select &lt;strong&gt;Generate Token&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-user-token-generator.png&quot; alt=&quot;User token generator.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;A pop-up window will prompt you to log in to the Instagram account in
question. After you do, you&#39;ll be asked to authorize your Facebook app.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-user-authorization.png&quot; alt=&quot;Instagram tester user authorization.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Finally, return to the Facebook app page and you&#39;ll be presented with the
long-lived user access token.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://templeman.io/img/note-insta-token-token-presentation.png&quot; alt=&quot;Instagram tester user token.&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You&#39;ll need this token, along with the user id of your Instagram account, to
initialize a custom Instagram feed on your (or your client&#39;s) website. There
are lots of tutorials out there on ways to set up a feed of your own, either
coding it from scratch or using a third-party service or plugin.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Awesome Ipsum</title>
      <link>https://templeman.io/note/awesome-ipsum/</link>
      <guid isPermaLink="true">https://templeman.io/note/awesome-ipsum/</guid>
      <pubDate>Wed, 29 Jun 2016 21:40:52 +0000</pubDate>
      <category>GitHub</category>
      <category>open source</category>
      <description>&lt;p&gt;In the 1500s, an anonymous printer co-opted a body of text and scrambled it to
make a type specimen book. Eventually the passage that we now recognize as
&lt;a href=&quot;https://www.lipsum.com/&quot;&gt;Lorem Ipsum&lt;/a&gt; grew into the de facto standard for
filler text used by typesetters and designers the world over.&lt;/p&gt;
&lt;p&gt;In the past decade, filler text has undergone somewhat of a renaissance. Back
in 2011 we got &lt;a href=&quot;https://baconipsum.com/&quot;&gt;Bacon Ipsum&lt;/a&gt;, which showed the world
what filler text could be. Other variations quickly followed. Today we have
gone from one venerable standard to hundreds of cheeky filler text
flavors featuring everything from &lt;a href=&quot;http://www.zombieipsum.com/&quot;&gt;zombies&lt;/a&gt; to
&lt;a href=&quot;http://nietzsche-ipsum.com/&quot;&gt;Nietzsche&lt;/a&gt;. In fact, anyone with a clever idea
and some basic programming skills can create an ipsum of their own, to the
point where it has become a kind of &amp;quot;Hello World&amp;quot; exercise for developers
wanting to experiment with Markov chains while giving a shout out to their
favorite &lt;a href=&quot;http://bavaria-ipsum.de/&quot;&gt;place&lt;/a&gt;,
&lt;a href=&quot;https://www.bobrosslipsum.com/&quot;&gt;celebrity&lt;/a&gt;, or &lt;a href=&quot;https://heisenbergipsum.com/&quot;&gt;television
show&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It&#39;s no surprise, then, that these lorem ipsum spin-offs come and go like the
wind. Those who celebrated the lovingly crafted Lebowski Ipsum will be saddened
to find it gone now, a for-sale sign in its place.&lt;/p&gt;
&lt;p&gt;Side-projects that they are, lorem ipsum spin-off sites spring up and fade out
with little fanfare, and keeping track of them is difficult. Many attempts
have been made to catalogue the various ipsum generators, but most of these end
up as outdated lists full of link-rot.&lt;/p&gt;
&lt;p&gt;In a (perhaps futile) attempt to solve this problem, and more selfishly, as a
means of getting my feet wet in open source collaboration, I created &lt;a href=&quot;https://github.com/templeman/awesome-ipsum&quot;&gt;Awesome
Ipsum&lt;/a&gt;. In keeping with the greater
&lt;a href=&quot;https://github.com/sindresorhus/awesome&quot;&gt;awesome list&lt;/a&gt; trend on GitHub,
Awesome Ipsum strives to maintain an up-to-date listing of lorem ipsum
generators from around the web.&lt;/p&gt;
&lt;p&gt;The generators are broken up by kind, then further categorized with tags
denoting helpful features. Anyone is encouraged to peruse the list and
contribute new generators, or help notify me of decommissioned sites. By
soliciting help from the community, I hope to have a near-comprehensive list
with a minimum of link-rot. I&#39;ve already received a number of great suggestions
and useful pull requests. Give it a look and - if you fancy revisiting it later - a star as well.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
