How do I Get a Facebook Email

Get help using Construct 2

Post » Fri Sep 30, 2016 7:34 pm

Hi, thanks in advance for any help.

I'm trying to modify the default facebook plugin to obtain an email. I've never made a plugin before, but I managed to add the Facebook.UserEmail expression which tries to get the "email", but it returns empty. Already tried changing it to "name" to check If my formatting of the expression was wrong, but doing so, correctly returns the FullName of the user.

Is the expression to obtain the mail different? :(

Screenshot of the var declare:
https://www.dropbox.com/s/twbzck5gwuvgm ... t.PNG?dl=0

The edited plugin:
https://dl.dropboxusercontent.com/u/831 ... ebook2.rar

I rename the folder to "facebook" and delete the other one. Every other aspect of the plugin works perfectly, so at least I didn't break it.

I hope I was clear enough, thanks again for any answer.
B
7
S
1
Posts: 13
Reputation: 754

Post » Fri Sep 30, 2016 10:48 pm

Hi @Lolyness

You can do this on mobile using CranberryGames Facebook plugin. The actual plugin is pretty buggy but login will work and the email expression works. To get everything else to work you can follow my tutorials on http://www.megagamestudios.com/ For getting a users e-mail on a browser you may have to use a JS expression. My tutorial will show you how to initiate a sharing function using JS. I'm also planning on doing another tutorial on how to download a user friend list. You should be able to modify this code to download a users email.

Hope that helps and I'm sorry there's no easier way!
Mega Game Studios is a tiny independent game studio run from our apartment in Melbourne, Australia. We're not quite sure what we do yet but we think it has something to do with apps, board games and plush toys.

www.megagamestudios.com
B
18
S
7
G
3
Posts: 85
Reputation: 2,920


Return to How do I....?

Who is online

Users browsing this forum: batto and 22 guests