Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Cursors (after and before) from IgUser -> media #1148

Closed
ernyka opened this issue Apr 6, 2021 · 0 comments
Closed

Getting Cursors (after and before) from IgUser -> media #1148

ernyka opened this issue Apr 6, 2021 · 0 comments
Assignees
Milestone

Comments

@ernyka
Copy link

ernyka commented Apr 6, 2021

facebook origin response to business_discovery is like:

"business_discovery": {
        "name": "sample",
        "username": "sample",
        "media_count": 1124,
        ...
        "media": {
            "data": [
                {...}
            ],
            "paging": {
                "cursors": {
                    "after": "QVFIUjRUQnVtVWREVzN..."
                }
            }
        }
}

which you can use after and use it to request the next page by .limit(page_element_number).after(next_page_code) simply IgUser need to have media with paging element and media data but it only contains media list. I made my own IGUser Dto to map and get Cursors but it's better to include it in your dtos.

@nbartels nbartels added this to the 3.17.0 milestone Apr 6, 2021
@nbartels nbartels self-assigned this Apr 6, 2021
@nbartels nbartels closed this as completed Apr 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants