This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get Instagram media on WordPress using the current Instagram (Facebook) API | |
* | |
* @param $token // Info on how to retrieve the token: https://www.gsarigiannidis.gr/instagram-feed-api-after-june-2020/ | |
* @param $user // User ID can be found using the Facebook debug tool: https://developers.facebook.com/tools/debug/accesstoken/ | |
* @param int $limit // Add a limit to prevent excessive calls. | |
* @param string $fields // More options here: https://developers.facebook.com/docs/instagram-basic-display-api/reference/media | |
* @param array $restrict // Available options: IMAGE, VIDEO, CAROUSEL_ALBUM | |
* |