こんにちは!
おでぃーです。
今回は、Meta for Developers登録方法からInstagram Gragh APIのアクセストークンを取得できるようになるまでの設定方法を解説していきます。
全く知識なしでも画像付きなので、見ながら一緒にやってみてくださいね。
Instagramアカウントをプロアカウントに変更
Instagram Gragh APIを使うには、アカウントをプロアカウントに変更する必要があります。
今回はスマホアプリでの画面を使って解説していきます。
まずアカウントを開いたら、右上の3本線をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5552.png?resize=576%2C1024)
「設定とプライバシー」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5553.png?resize=576%2C1024)
「アカウントの種類とツール」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5554.png?resize=576%2C1024)
「プロアカウントに切り替える」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5555.png?resize=576%2C1024)
「次へ」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5556.png?resize=576%2C1024)
ご自身のアカウントに当てはまるカテゴリを選択し、「完了」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5557.png?resize=576%2C1024)
クリエイターorビジネスを選択し、「次へ」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5558.png?resize=576%2C1024)
プロモーションメールのオンオフを設定し、「次へ」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5559-wpp1707490220640.png?resize=576%2C1024)
必要に応じて連絡先情報を入力し、「次へ」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5560-wpp1707489998315.png?resize=576%2C1024)
「スキップ」をタップ。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5561.png?resize=576%2C1024)
必要に応じてプロアカウントの設定して、右上の×で終了。
ちなみに何も設定せずに終了しても問題ありません。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5562.png?resize=576%2C1024)
プロフィール画面に戻り、「プロフェッショナルダッシュボード」が表示されていれば、プロアカウントへの変更は完了です。
表示されない場合は、アプリを再起動してみてください。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/IMG_5563.png?resize=576%2C1024)
Facebookページの作成
Facebookをウェブブラウザで開きます。
右上のメニューから「ページ」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-8.png?resize=770%2C422&ssl=1)
「新しいページを作成」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-9-wpp1707489956625.png?resize=440%2C444)
- ページ名
- カテゴリ(何か文字を入れると候補がでてきます。)
を好きなように入力し、「Facebookページを作成」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-10.png?resize=426%2C264&ssl=1)
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-11.png?resize=425%2C64&ssl=1)
その後、設定画面がステップ1/5から5/5までありますが、すべて飛ばしても問題ありません。
必要に応じて設定してください。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-12.png?resize=420%2C164&ssl=1)
完了すると、下記のようにページが表示されます。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-13-1024x486.png?resize=1024%2C486&ssl=1)
FacebookページとInstagramアカウントのリンク
Facebookページ左の「設定」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-14.png?resize=422%2C296&ssl=1)
「リンク済みのアカウント」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-16.png?resize=436%2C351&ssl=1)
「アカウントをリンク」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-17-1024x403.png?resize=1024%2C403&ssl=1)
「リンクする」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-18.png?resize=695%2C720&ssl=1)
メッセージ設定を選択後、「確認」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-19.png?resize=688%2C552&ssl=1)
リンクさせたいInstagramアカウントにログイン
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/スクリーンショット-2024-02-05-212241.png?resize=512%2C740&ssl=1)
リンクされましたと表示されるので、「完了」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-20.png?resize=878%2C426&ssl=1)
下記のようにリンクされたInstagramアカウントが表示されているのを確認して完了です。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-21-1024x560.png?resize=1024%2C560&ssl=1)
Meta for Developersにログイン
Meta for Developersにアクセスし、右上の「ログイン」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-1024x449.png?resize=1024%2C449&ssl=1)
ご自身のFacebookアカウントにログイン。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-1.png?resize=773%2C579&ssl=1)
アプリの作成
右上の「マイアプリ」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-2-1024x401.png?resize=1024%2C401&ssl=1)
Meta for Developersの管理画面が開きます。
右上の「アプリ」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-3-1024x136.png?resize=1024%2C136&ssl=1)
「アプリを作成」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-4.png?resize=671%2C87&ssl=1)
「ユースケースを追加」という画面が表示されます。
Instagram Gragh APIを使うのであれば、「その他」を選択で問題ありません。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-5-1024x626.png?resize=1024%2C626&ssl=1)
「アプリタイプを選択」という画面が表示されます。
APIを利用するので、「ビジネス」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-6-1024x760.png?resize=1024%2C760&ssl=1)
詳細入力画面になります。
- アプリ名
- メールアドレス
- ビジネスアカウント
を入力し、「アプリを作成」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-7-wpp1707490046775.png?resize=1024%2C438)
以上でアプリの作成は完了です。
app IDとapp Secretの取得
Meta for Developersにて、上部メニューから「アプリ」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-23-1024x26.png?resize=1024%2C26&ssl=1)
作成したアプリを選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-29-wpp1707490125543.png?resize=826%2C390)
左メニューから、「アプリの設定」→「ベーシック」を選択。
すると、アプリIDとapp secretが表示されるので、それぞれコピーして取得する。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-28-wpp1707490148992.png?resize=1024%2C152)
短期アクセストークンの取得
引き続きMeta for Developersにて、上部メニューから「ツール」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-23-1024x26.png?resize=1024%2C26&ssl=1)
「グラフAPIエクスプローラ」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-24-1024x317.png?resize=1024%2C317&ssl=1)
グラフAPIエクスプローラが表示されます。
右側にてアクセストークン発行設定をします。
- Metaアプリ
- アクセス許可
を設定します。
Metaアプリでは、先ほど作成したアプリを選択。
アクセス許可では、APIの用途に合わせて必要な権限オプションを追加します。
投稿の場合は、下記2つを追加します。
- instagram_basic
- instagram_content_publish
最後に「Generate Access Token」を選択。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-25.png?resize=598%2C561&ssl=1)
Facebookへのログイン確認などを進めると、アクセストークンが表示されるのでコピーします。
![](https://i0.wp.com/odyprograming.com/wp-content/uploads/2024/02/image-26.png?resize=596%2C547&ssl=1)
このアクセストークンは1時間で無効になるので、以降の作業で時間が空いてしまう場合は再度取得してください。
以上でアクセストークンの取得は完了です。
まとめ
設定手数が多くて少し大変そうに見えますが、実際にやってみると10分くらいでできちゃいます。
APIを使えるようにして、ぜひ充実したInstagram効率化ライフを送ってください!
コメント