Open wdayanand opened 4 years ago
Per discussion at the thread: https://stackoverflow.com/questions/53494945/fetch-the-user-information-with-the-permission-into-facebook-instant-game One must use the relevant FBInstant methods (e.g. FBInstant.player.getName()) to get player information. And it is currently not possible to access the player’s email address and gender from within Instant Games.
Let me know if you have further questions. Thanks. cc @chrishawkins
I need email in my game for further communication like rewards, notification, etc but as per document I didn't see any way to get email I tried with javascript sdk using FB.login(function (response) { if (response.authResponse) { FB.api('/me?fields=email', function (userInfo) { console.log(userInfo.email); }); } else { console.log('Auth cancelled.') } }, { scope: 'email' });
but i always got Blocked opening error ="in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set"
Please let me know How i can get user email id