Return to Snippet

Revision: 49636
at July 27, 2011 04:27 by serialk89


Initial Code
//Codigo javascript

function app_request(user){

      FB.ui({
        method: 'apprequests',
        title: 'Concurso Hipoglos',
        message: 'Invita a tus amigos a subir a tu bus de hipoglos y ganar fantasticos premios.',
        data: user
      });

}


// para rescatar los datos
if(isset($_GET['request_ids'])){
                            
     $reqId = $_GET['request_ids']; // Get the id of the current request
     $requests = $facebook->api('/me/apprequests/?request_ids='.$reqId);                                      
     $itemData = $requests['data'][0]['data']; //DATO QUE SE PASA POR URL
     
     
}

Initial URL

                                

Initial Description
Rescatar data desde apprequest

Initial Title
Apprequest, pasar parametros e invitar amigos, facebook

Initial Tags
javascript, php, facebook

Initial Language
PHP