1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-09-17

#発端
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}
この辺は、利用する情報に応じて調べて変更してね。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?