www.webdeveloper.com
Results 1 to 2 of 2

Thread: [RESOLVED] trouble iterating facebook message_tags

  1. #1
    Join Date
    Mar 2008
    Posts
    10

    resolved [RESOLVED] trouble iterating facebook message_tags

    I was successful at iterating a single object in the message_tags:

    Code:
    "message_tags": [
              {
                "id": "123456",
                "name": "Jon",
                "type": "user",
                "offset": 53,
                "length": 3
              }
            ]
    but it failed when I attempted two. After a little tinkering I could iterate this but I'm unsure of how to write the conditional statement to iterate either.

    Code:
      "message_tags": {
        "5": [
          {
            "id": "1234567",
            "name": "Alvin",
            "type": "user",
            "offset": 5,
            "length": 5
          }
        ],
        "15": [
          {
            "id": "12345678",
            "name": "Krista",
            "type": "user",
            "offset": 15,
            "length": 6
          }
        ]
      }
    any help appreciated.

  2. #2
    Join Date
    Mar 2008
    Posts
    10
    nevermind

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles