Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Pagination Graph API #42

Open
FilipLukac opened this issue Jul 23, 2015 · 1 comment
Open

Pagination Graph API #42

FilipLukac opened this issue Jul 23, 2015 · 1 comment

Comments

@FilipLukac
Copy link

Ahoj (Dufam ze mozem pisat po slovensky, ak nie prepisem do ENG).

Je mozne, aby som pomocou tejto kniznice presiel resp. urobil request na graph API, pomocou pagination ? Nechcem vyuzit externe CURL requesty.

Co potrebujem je:

  1. Urobim call na /me/feed
  2. Vrati sa mi N vysledkov + pagination
  3. Chcem urobit dalsi request pomocou pagination->next
  4. Znova dokolecka, kym mozem.

UPDATE:
Neviem preco mi /me/feed nevracia property "cursors".
/me/likes mi polozku "cursors" vracia.

toto je polozka "paging" pre response /me/feed

Nette\Utils\ArrayHash Object ( [previous] => https://graph.facebook.com/v2.4/464067317094209/feed?since=1437678292&access_token=CAAUhWEafNP8BALuCUBAYOSTJvJt0stNyyrH2P2uM5ailBmZB2rXcBxuI5N5oqg9vkZBWCdPlBBfs9ZASDFEFZCCwvTJyXUaUBdGnHa96VkInuJcZB1efd5VlZC8dtwGOly4fZBgVAjMLjcKq1s0fh3AWvsdUMJ3lNsR9SM3t8HzeocCTBStbyrsvHnTREaqwNZBlnv4DvJvCFRnf0xqDq3Ho&limit=25&__paging_token=enc_AdBDWqKZCxWOzXUgNOXZBRhOhRj172cvyV4kRy9YOCJhh2XOZBUG1WJTCRnsZCwDE9ZC77QTGMo33lfvz44MZCuAfzkZCiy0h1lbKhFotBV6luNlti8wQZDZD&__previous=1 [next] => https://graph.facebook.com/v2.4/464067317094209/feed?access_token=CAAUhWEafNP8BALuCUBAYOSTJvJt0stNyyrH2P2uM5ailBmZB2rXcBxuI5N5oqg9vkZBWCdPlBBfs9ZASDFEFZCCwvTJyXUaUBdGnHa96VkInuJcZB1efd5VlZC8dtwGOly4fZBgVAjMLjcKq1s0fh3AWvsdUMJ3lNsR9SM3t8HzeocCTBStbyrsvHnTREaqwNZBlnv4DvJvCFRnf0xqDq3Ho&limit=25&until=1434891288&__paging_token=enc_AdBj5DpHVChFwXE8IFYNwsZCbAN059fF2ZCjDye83XtqzUod0mAcuKD3ErehG1HN3Nmsd10TOX5zZCNRExSy1ypB4seqJKyDnWWnhmm6qtgjRcvDgZDZD )
@fprochazka
Copy link
Member

Slovenština je v pohodě :)

Nechceš zkusit místo ->api() raději ->iterate() ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants