Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Login With Facebook And Get Email Address
Login With Facebook And Get Email Address >>>
(Copy & Paste link)
Taiwan ‪(+886)‬. Ready yourself for patches Opera browser updated to stop crypto-currency mining Still stuck? To get back to what you were doing, try one of the following: Click your back button and try again Visit our home page Contact us The website administrator has been informed that the fluffy cat has been spotted. Syria ‪(+963)‬. Hungary ‪(+36)‬. Palestine ‪(+970)‬. Nepal ‪(+977)‬. Follow Contact Send a tip or story idea Hire Graham Cluley to speak at your event Sponsorship Complaints/Corrections Privacy Policy Copyright 2018 Cluley Associates Limited. Nigeria ‪(+234)‬. Sao Tome and Principe ‪(+239)‬. Cook Islands ‪(+682)‬. One account. Jamaica ‪(+1)‬. Montserrat ‪(+1)‬. Dominican Republic ‪(+1)‬. Belgium ‪(+32)‬. ‪(+245)‬. Let me cheer you up with a picture of a fluffy cat. Turkmenistan ‪(+993)‬. Guam ‪(+1)‬. Uganda ‪(+256)‬. New Caledonia ‪(+687)‬. More info and show notes. Stay informed with our free GCHQ newsletterOver 75,000 people follow Graham Cluley for news and advice about computer security and internet privacy. shareimprove this answer edited Jan 29 '14 at 19:36 Reger 469415 answered Aug 31 '10 at 17:55 Gazler 61k12191197 Okay, changed filegetcontents. Here is the code snippet $initMe["appId"], 'secret' => $initMe["appSecret"], )); $facebook->setAccessToken($initMe["accessToken"]); $user = $facebook->getUser(); if ($user) { $userprofile = $facebook->api('/me'); printr($userprofile["email"]); } ?> shareimprove this answer edited Jan 9 '16 at 5:21 Kristian Damian 76031536 answered Apr 2 '12 at 15:13 Yash Kumar 29136 4 This is not working for me. Slovakia ‪(+421)‬. Israel ‪(+972)‬. asked 7 years, 4 months ago viewed 283,725 times active 1 month ago Blog Take the 2018 Developer Survey Linked 1 Facebook - how to get email from ID? -1 Where can I get the user email? 11 Android Facebook get all profile information 4 How to get the email address of a Facebook user using the graph API? 1 Get Facebook User Email from their FB ID 0 how to get a user's facebook email address 1 In Facebook Graph API, what are the API calls to get a user's email address 2 Get facebook emails using django -4 Is it possible to get friend's emails using facebook api? 0 How can we get user email id using facebook connect? see more linked questions Related 1849How do I get a YouTube video thumbnail from the YouTube API?71Getting the “real” Facebook profile picture URL from graph API355Design for Facebook authentication in an iOS app that also accesses a secured web service12Is a user's email address confirmed in Facebook Graph API?57Is it possible to check if an email is confirmed on Facebook?0Facebook api 3.5 graph get profile info android1493How does Facebook disable the browser's integrated Developer Tools?3Facebook graph api v2.4 not returning birthday2Get Another User's Information by Facebook Graph API0Swift get Facebook user email not working Hot Network Questions What makes the Mauritius Passport so valuable? How to partially extract zipped huge plain text file? Does a 2100W angle grinder need an earth pin? Is Predator ever called Predator in any of the films? The use of T[] as a template parameter How to prove a non-provable statement? That is weird. Mexico ‪(+52)‬. Bosnia and Herzegovina ‪(+387)‬. How to correct this? Why is Windows reporting a battery charge with my desktop? Spectre/meltdown on a GPU Difference between 0-18V and -9V - +9V Is there a list of old browsers that only support TLS 1.0? No space left, even though I have an untouched 990 GB partition How to keep democracies from falling behind technologically? Should a value of a constant be changed over time? How can I deal with managers that refused to accept use of common software engineering design patterns How to measure small, spiky amounts of current? Unknown notation relating to stoichiometry Why do different elements have different number of isotopes? How "scrambled" is the data on a RAID5 disk? How should a student's inefficient calculation be pointed out? The Looping through a Static Resource List is Not Obeying Conditions Fair treatment for employees always late due to public transport more hot questions question feed lang-php . But I'm a little confused as to where I would pass the reqperms=email. Tuvalu ‪(+688)‬. Join Stack Overflow to learn, share knowledge, and build your career. rev2018.1.9.28319 . The intro to Graph states "The Graph API can provide access to all of the basic account registration data you would typically request in a sign-up form for your site, including name, email address, profile picture, and birthday" All well and good, but how do I access that info? This is what I have so far: $json = $facebook->api('/me'); $first = $json['firstname']; // gets first name $last = $json['lastname']; php json facebook facebook-graph-api shareimprove this question edited Feb 15 '12 at 2:31 asked Aug 31 '10 at 17:42 kylex 6,0492788156 3 what does vardump($obj); output? –Jayrox Aug 31 '10 at 17:45 add a comment 10 Answers 10 active oldest votes up vote 64 down vote accepted The only way to get the users e-mail address is to request extended permissions on the email field. US Virgin Islands ‪(+1)‬ 5a02188284
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment