Anahkiasen / flickering

A modern PHP interface for the Flickr API
50 stars 20 forks source link

not fetching latest picture #25

Open t0n1zz opened 8 years ago

t0n1zz commented 8 years ago

so i don't get new picture from flickr, it just a picture from the first time i add this plugin into my laravel website, any idea why?

i use config file to add api key and secret key and then in controller i using this

Flickering::handshake();
$pictures=  Flickering::callMethod('people.getPhotos', array('user_id' => '127271987@N07'));
$pictures->setPerPage(10);
$pictures= $picture->getResults('photo');

and in my view

@foreach($pictures as $picture)
<?php
$img_url ="http://farm{$gambar['farm']}.staticflickr.com/{$gambar['server']}/{$gambar['id']}_{$gambar['secret']}.jpg";
$img_url_big ="http://farm{$gambar['farm']}.staticflickr.com/{$gambar['server']}/{$gambar['id']}_{$gambar['secret']}_b.jpg";
?>
<img alt="" class="" src="{{$img_url}}" />
@endforeach