Uploaded image for project: 'Spring Social Facebook'
  1. Spring Social Facebook
  2. SOCIALFB-168

PagingParameters must use paging token

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.RELEASE, 2.0.0.M1
    • Fix Version/s: 2.0.0.RC1
    • Component/s: API Binding
    • Labels:
      None

      Description

      When fetching the posts of a page, the response from facebook contains the paging links "next" and "previous". Those will have a "until" or "since" parameter and additionally a parameter "__paging_token"
      The PagingParameters implementation ignores the paging token, but with only "until" the last post from the previous page is returned as first item of the next page.
      Until seems to be the time of the last post on the previous page.
      And of course there might be more than one post at this time, so facebook returns all posts starting with this time. The paging token seems to add additional information for facebook so that the next page will start really at the next post.

      Example call...
      facebook.feedOperations().getPosts(facebookPageId, new PagingParameters(10, 0, null, null));

      Example next link returned from facebook:
      https://graph.facebook.com/v1.0/1234567890/posts?limit=10&until=1402415239&__paging_token=enc_Aew9rTpQB8B9zCX9BYus-GhWKOtQzhoiKlV9vpk7D4y-QgcEoCH09rNOydIOOr76wGbTxX-2pV9tMf__6bjs2_DqGcBLFDirt315VXS6_zgG7N

        Attachments

          Activity

            People

            Assignee:
            habuma Craig Walls
            Reporter:
            t.harders Thorsten Harders
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: