How to retrieve only FirstName of a Facebook player?

0 votes
currently

game.GetScoreList()[i].GetFacebookProfile().GetName();

returns the whole name of the player.

Is there a way to get only the first name?
asked Jun 7, 2014 in App42 Cloud API-BaaS by invests4you (10 points)

1 Answer

0 votes

Hi,

This feature returning the first name in our pipe line .But for now you can write your own custom logic using our customCode Service .Here is code which you can use  in your custom Logic:

String name = "Naresh Dwivedi";

String[] splited = name.split(" ");
System.out.println( "First Name is :"+ splited[0]);
answered Jun 9, 2014 by naresh (350 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...