Need Email Id and Phone Number on Facebook Instant Game using Cocos2d-JS game

I need player Email ID and Phone number on Facebook Instant Game using cocos2d-js game.
I can able to get the Facebook player name, unique ID and photo URL but I need some more details as well like Facebook Phone number and Email ID.

FBInstant.initializeAsync().then(function()
{
// Once all assets are loaded, tells the SDK
// to end loading view and start the game
FBInstant.startGameAsync().then(function()
{

           var contextId   =  FBInstant.context.getID();
           var contextType =  FBInstant.context.getType();
           var playerName  =  FBInstant.player.getName();
           var playerPic   =  FBInstant.player.getPhoto();
           var playerId    =  FBInstant.player.getID();

           // Run gameplay logic
           cc.game.run();

       });
});

With above code, I can get the player name, unique id and Photo URL

Please suggest me to how can I get player Email Id or Player phone number in cocos2d-js on facebook instant game or if any other way is possible to get that pls help me out.

If anybody has experienced and interested in this topic,
any tips, suggestions or recommendation would be appreciated.

Thanks,
Jagdish

Hello,

I dont know about FB Instant game but for sdkbox this thread will help you.


and I dont think you can get mobile number, for security reasons.

1 Like

Correct, this would be a big no-no. @jagdishpatidar I have to question what you are doing where you need this information.

Hi @slackmoehrle,
I need that information in my game for further communication like rewards, notification, etc.

If you are looking for unique-id then for Android use android-id and for iOS use UDID (You have to create one and save into device, it will not be deleted on app uninstall)
This is the standard way to do it.

You need the person’s phone number? If a game ever did that to me I would take some actions against the company and platform it was launched on. That is really unfair. I guess it is good that Facebook blocks this info from being harvested.

Thanks for the new way suggestion.