php - facebook permission not working in iframe app -


I want to go to the next page in the IFrame based application on Facebook and I want to get permission on that page, but the permission code The next page did not work even though working in the default index page. Here is my code. This work is in the index.fp but the inappropriate page is not working

  $ app_id = '107919565956374'; $ Canvas_page = 'http://www.roohware.net/products/mytestapp/'; $ Auth_url = "http://www.facebook.com/dialog/oauth?client_id=" $ App_id "& amp; redirect_uri =" urlencode ($ canvas_page); $ Sign_request = $ _REQUEST ["signed_required"]; List ($ encoded_sig, $ payload) = explosion ('.', $ Sign_request, 2); $ Data = json_decode (base64_decode (str ($ payload, '-_', '+ /')), true); If (empty ($ data ["user_id"]) {echo ("& lt; script> top position. HRI = '" $ auth_url. "' '' / Script & gt;");} Else { Echo ("Welcome User:". $ Data ["user_id"])}    

Instead of

  resonance ("& lt; script & gt; top position. Hrr = ''. $ Auth_url. '' & Lt; / script & gt;");  
  echo "& lt; a target = '_ parent' href = '". $ Auth_url "' & Gt; app Allow & lt; / a & gt; ";    

Comments