Facebook OAuth Data Capturing

后端 未结 1 1186
有刺的猬
有刺的猬 2021-01-17 03:58

I need to capture Oauth data coming from facebook into my table , i have written this code

$app_id = \"340088232675552\";
$canvas_page = \"https://apps.faceb         


        
相关标签:
1条回答
  • 2021-01-17 04:41

    You will not get email field by default from Graph API user object and need to explicitly request it by passing fields arguments.

    $graph_url = 'https://graph.facebook.com/me?fields=email&access_token='.$data["oauth_token"];
    
    0 讨论(0)
提交回复
热议问题