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