Apprequest, pasar parametros e invitar amigos, facebook


/ Published in: PHP
Save to your folder(s)

Rescatar data desde apprequest


Copy this code and paste it in your HTML
  1. //Codigo javascript
  2.  
  3. function app_request(user){
  4.  
  5. FB.ui({
  6. method: 'apprequests',
  7. title: 'Concurso Hipoglos',
  8. message: 'Invita a tus amigos a subir a tu bus de hipoglos y ganar fantasticos premios.',
  9. data: user
  10. });
  11.  
  12. }
  13.  
  14.  
  15. // para rescatar los datos
  16. if(isset($_GET['request_ids'])){
  17.  
  18. $reqId = $_GET['request_ids']; // Get the id of the current request
  19. $requests = $facebook->api('/me/apprequests/?request_ids='.$reqId);
  20. $itemData = $requests['data'][0]['data']; //DATO QUE SE PASA POR URL
  21.  
  22.  
  23. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.