Code for get data facebook likes category wise as a music
Note :- Use the facebook login and get token. <?php $token = $facebook->getAccessToken(); $_SESSION['token'] = $token; ?> -------------------------------------------------------- <?php ################################ List of Music ######################################### if(isset($_REQUEST['category_id']) && $_REQUEST['category_id'] == '2') { /*----------------------------------------------------- Fb Music Acess----------------------------------------------------------------*/ ################## User's Friends like ################################ $params['access_token'] = $_SESSION['token']; if(!isset($_SESSION['fb_likes_music'])) { $graph_url = "https://graph.facebook.com/me/friends?access_token=". $params['access_token']; $friends = json_decode(file_get_contents($graph_url)); $fb_friend=array(); $j=0; $fb_likes_music=array(); foreach($friends->