Help us understand the problem. What is going on with this article?

facebook graph apiで、特定のusernameの記事を指定件数だけ取得するURL。

発端

instagramから画像を取得したいからAPIで取得した。

早速

https://graph.facebook.com/v4.0/facebook_page_id/
?access_token=access_token
&fields=business_discovery.username(username)
{
media.limit(50)
{caption,children,permalink,media_url}
}

facebook_page_id, access_token, username
は皆さんの環境に合わせてね。

説明

上3行は割愛。

media.limit(50)
そのusernameの投稿の先頭から50件を取得するよ!という意味。

{caption,children,permalink,media_url}
この辺は、利用する情報に応じて調べて変更してね。

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away