facebook / facebook-java-business-sdk

Java SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
399 stars 329 forks source link

PagePost is missing attachments #316

Closed pawelebe closed 2 years ago

pawelebe commented 4 years ago

Which SDK version are you using?

8.0

What's the issue?

This is hard to get attachments for page posts

final Page.APIRequestGetPosts apiRequestGetPosts = new Page.APIRequestGetPosts("<<id>>", yourContext);

        apiRequestGetPosts.requestField("attachments{media_type,url,description,title,subattachments,media,target}");
        final JsonObject firstPost = apiRequestGetPosts.execute().get(0).getRawResponseAsJsonObject();
       post.get("attachments"); // this is there not empty but not possible to get via API

Observed Results:

Expected Results:

stale[bot] commented 3 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.

stale[bot] commented 2 years ago

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.