Thuzi / facebook-node-sdk

Modeled from the (Facebook Javascript SDK), now with the facebook-node-sdk you can now easily write the same code and share between your server (nodejs) and the client (Facebook Javascript SDK).
Other
736 stars 250 forks source link

Question paging #111

Closed bgnq closed 8 years ago

bgnq commented 8 years ago

Hello,

With FB.api, I don't find where to put the paging token, can you help me please ? On second parameter, I put an object with fields, but where put a paging token ? Sample paging token : enc_AdAZBsCTaRDHNzVTaU2AJs2Yfhq4mQpk7lb4dK9vFFrRGs4XKzGQKxuyeoDQZBgtRKjVQvYMlVg5AD37QwmsfBUr2gxwZAZCYd0kEQhGQZCZAPwFWJ4QZDZD

Than you for your hep.

dantman commented 8 years ago

If you're talking about the token in paging.cursors.after described here. The next url contains an &after= so it looks like the after field is what you use for pagination.

In the case of this SDK that means FB.api('/...', {..., after: <paging token>}, cb).

bgnq commented 8 years ago

THANK YOU !! :)