Page 1 of 1

Facebook API assistance

Posted: Sun Jun 30, 2013 6:21 am
by Tony Ren

Using the Facebook API produces the following JSON object array for education:

Code: Select all

      "year": { 
         "id": "532490046771314", 
         "name": "2017" 
      }, 
      "concentration": [ 
         { 
            "id": "112892498724794", 
            "name": "Management" 
         } 
      ], 
      "type": "College" 
   } 
] 

How do I map both the "college" and "high school" names into two labels?


Facebook API assistance

Posted: Sun Jun 30, 2013 6:36 am
by Illya Stepanov

Hello, please look our tutorial :: http://docs.appery.io/tutorials/build...


Facebook API assistance

Posted: Mon Jul 01, 2013 4:12 am
by Tony Ren

That doesn't explain how to deal with JSON arrays and how to distinguish variables by "type".


Facebook API assistance

Posted: Mon Jul 01, 2013 4:20 am
by maxkatz

[quote:]
How do I map both the "college" and "high school" names into two labels?
[/quote]
You would place two labels on a page and then map from service to the page.


Facebook API assistance

Posted: Mon Jul 01, 2013 4:42 am
by Tony Ren

Can you walk me through this process because it doesn't work for me?


Facebook API assistance

Posted: Mon Jul 01, 2013 4:43 am
by maxkatz

Can you show a screen shot of mapping you tried?


Facebook API assistance

Posted: Mon Jul 01, 2013 5:01 am
by Tony Ren

I've tried a couple but this is my most recent configuration:

http://puu.sh/3sl2U.png


Facebook API assistance

Posted: Mon Jul 01, 2013 6:12 am
by maxkatz

Do you want both school type to be printed next to each other (in the same iteration)?


Facebook API assistance

Posted: Mon Jul 01, 2013 6:21 am
by Tony Ren6004212

Doesn't matter


Facebook API assistance

Posted: Mon Jul 01, 2013 9:31 am
by Maryna Brodina

Hello! You have incorrect mapping. Map to mobilelistitem_40 not school, but education as education is an array and the school is not.