Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $user=$_REQUEST['user'];
  2.  
  3. $app_id = "2342084241";
  4.  
  5. //?i=$user
  6. $canvas_page = "http://apps.facebook.com/pirates/";
  7.  
  8. $message = "You have been invited to play Pirates!";
  9.  
  10. $requests_url = "http://www.facebook.com/dialog/apprequests?app_id="
  11. . $app_id . "&redirect_uri=" . urlencode($canvas_page)
  12. . "&message=" . $message;
  13.  
  14. if (empty($_REQUEST["request_ids"])) {
  15. echo("<script> top.location.href='" . $requests_url . "'</script>");
  16. } else {
  17. echo "Request Ids: ";
  18. print_r($_REQUEST["request_ids"]);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement