Closed pawelebe closed 2 years ago
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. Thank you for your contributions.
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.
Which SDK version are you using?
8.0
What's the issue?
This is hard to get attachments for page posts
Page.APIRequestGetPosts
you cannot specify that you want to include attachments (but it is possible in API). You can still do this byapiRequestGetPosts.requestField("attachments{media_type,url,description,title,subattachments,media,target}")
getRawResponseAsJsonObject
but attachments are not mapped into any field inPagePost
PagePost#getAttachments().execute()
for each post (which is resource heavy)PostAttachements
are not mapped to object in any way. MethodPagePost#getAttachments
is returning generic objectAPINode
Steps/Sample code to reproduce the issue
Observed Results:
Expected Results:
APINode