php - Accessing a user details from a page application -
I have seen examples of access to user data in the canvas application with the Oeth and Graph API. But what do I want is that the user has access to tabs such as applications, names, email addresses, and photos tabs within the app. I have looked around and have not seen any examples. I am thinking that this is possible and how I will get user data and yes I want to do it via audio (asking for data).
Best regards
This is an exact method for canvas apps: / P>
& lt ;? Php $ app_id = YOUR_APP_ID; $ Canvas_page = YOUR_CANVAS_PAGE_URL; $ 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"]);}? & Gt; If you need access to the user's email then just enter the Add Scope parameter (with email permission). / P>
Comments
Post a Comment