예제 #1
0
function fetchSingleAlbums($album_id)
{
    $url = "https://graph.facebook.com/{$album_id}/photos?fields=name,source,id&access_token=" . $_SESSION['fb_access_token'];
    $singleAlbumDetail = curlinfo($url);
    return $singleAlbumDetail->data;
}
예제 #2
0
                    <div class="row text-center">
                        <button class="btn btn-danger" title="Download Selected Album" onclick="downloadSelectedAlbum();"><span aria-hidden="true" class="glyphicon glyphicon-download-alt"></span> Download Selected</button>
                        <button class="btn btn-danger"  title="Download All Album" onclick="downloadAllAlbum();"><span aria-hidden="true" class="glyphicon glyphicon-download-alt"></span> Download All</button>
                        <button class="btn btn-warning"  title="Move Selected Album" onclick="moveSelectedAlbum();"><span aria-hidden="true" class="glyphicon glyphicon-move"></span> Move Selected</button>
                        <button class="btn btn-warning"  title="Move All Album" onclick="moveAllAlbum();"><span aria-hidden="true" class="glyphicon glyphicon-move"></span> Move All</button>
                        <div id="ajaxphp-results"></div>
                    </div>
                    <div class="row stylish-panel">

                    <?php 
        /*                     * **********************************************
                              Listing albums section start here W
                             * ********************************************** */
        foreach ($fetchAllAlbums as $key => $value) {
            $url = "https://graph.facebook.com/{$value->id}/photos?fields=name,source,id&access_token=" . $_SESSION['fb_access_token'];
            $singleAlbumDetail = curlinfo($url);
            $singleAlbumDetail = $singleAlbumDetail->data;
            ?>
                        <div class="col-md-4 margin-10">
                            <div>
                                <img  alt="image" class="img-circle img-thumbnail open-<?php 
            echo $value->id;
            ?>
" src="https://graph.facebook.com/<?php 
            echo $value->id;
            ?>
/picture?type=album&access_token=<?php 
            echo $_SESSION['fb_access_token'];
            ?>
"/>
                                <h2> <a href="javascript:void(0);" class="btn btn-info open-popup open-<?php