• 1.
    foreach ($media->data as $data) {
  • 2.
        $x = $instagram->likeMedia($data->id);
  • 3.
        $usr = $data->caption->from->username;
  • 4.
        echo "<div class=\"span2\"><span style=\"text-align: center;\"><a href=\"{$data->link}\" target=\"_blank\"><div class=\"well\"><img src=\"{$data->images->thumbnail->url}\" alt=\"Loading...\"></a><br /><br /><a rel=\"tooltip\" title=\"Visit {$usr}'s Profile\" class=\"btn btn-primary btn-small\" href=\"http://instagram.com/{$usr}\">View Profile</a><br /></span></div></div>";
  • 5.
    }
foreach ($media->data as $data) { $x = $instagram->likeMedia($data->id); $usr = $data->caption->from->username; echo "<div class=\"span2\"><span style=\"text-align: center;\"><a href=\"{$data->link}\" target=\"_blank\"><div class=\"well\"><img src=\"{$data->images->thumbnail->url}\" alt=\"Loading...\"></a><br /><br /><a rel=\"tooltip\" title=\"Visit {$usr}'s Profile\" class=\"btn btn-primary btn-small\" href=\"http://instagram.com/{$usr}\">View Profile</a><br /></span></div></div>"; }

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter