Posts

Showing posts from December, 2013

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->...

how to show loader image before loading ajax

<html> <body> <script language="javascript">function loaddata(){ datastring = 'favour='+id+'&itemsId='+chkItem;                         jQuery.ajax({                         type: "POST",                           url: "cuponcode.php",                           data: datastring,                            beforeSend:function(){                         jQuery('#overlay_loader').css("di...