Hi,
I tried the kirby3-instagram plugin of @bnomei and it’s pretty cool !
But now, I wanted to show on a page only my saved pictures (from another account saved on mine) and in a second time, my media wich have a special tag.
I tried a lot of different writting for the endpoint but nothing never happens…
can you paste the code used for each snippet/template please so i can have a look. you can use TOKEN
instead of your real token.
I just used the example code to test like that :
foreach(site()->instagram($token, $endpoint, $params, $force) as $data) {
echo Kirby\Toolkit\Html::img(
$data['images']['standard_resolution']['url']
);
}
And $endpoint = 'users/self/media/recent'
, but I tried lot of different things like :
$endpoint = 'users/self/saved'
$endpoint = 'users/self/collections/list';
$endpoint = 'feed/liked';
$endpoint = 'users/self/media/like';
please try from your terminal and see if you get a non 400
http code response. this is the most basic test i can think of since the plugin does only build the url and parse the result.
wget https://api.instagram.com/v1/users/self/media/recent?access_token=YOUR_TOKEN
It answer me -bash: wget: command not found
try curl
instead of wget
then or put the url in a browser
There are too much caracters, can I send it to you by mail ?