From 0ee509ecba72d0aa644b12c10768446009babd40 Mon Sep 17 00:00:00 2001 From: Norbert Bartels Date: Sun, 26 Sep 2021 15:59:14 +0200 Subject: [PATCH] Issue #1172: Graph api 12 deprecated fields in page object --- src/main/lombok/com/restfb/types/Page.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/lombok/com/restfb/types/Page.java b/src/main/lombok/com/restfb/types/Page.java index 8e4377386..db75be2d4 100644 --- a/src/main/lombok/com/restfb/types/Page.java +++ b/src/main/lombok/com/restfb/types/Page.java @@ -1361,18 +1361,24 @@ public class Page extends CategorizedFacebookType implements HasProfilePicture { /** * Instagram account connected to page via page settings + * + * @deprecated with Graph API 12 or December 13, 2021 for all versions */ @Getter @Setter @Facebook("connected_instagram_account") + @Deprecated private IgUser connectedInstagramAccount; /** * Instagram account linked to page during Instagram business conversion flow + * + * @deprecated with Graph API 12 or December 13, 2021 for all versions */ @Getter @Setter @Facebook("instagram_business_account") + @Deprecated private IgUser instagramBusinessAccount; @Facebook("instagram_accounts") @@ -2002,16 +2008,20 @@ public boolean removeFoodStyle(String foodStyle) { * Notes of this page * * @return Notes of this page + * @deprecated with Graph API 12 or December 13, 2021 for all versions */ - @GraphAPI(since = "2.6") + @Deprecated + @GraphAPI(since = "2.6", until = "12.0") public List getAdminNotes() { return unmodifiableList(adminNotes); } + @Deprecated public boolean addAdminNote(PageAdminNote adminNote) { return adminNotes.add(adminNote); } + @Deprecated public boolean removeAdminNote(PageAdminNote adminNote) { return adminNotes.remove(adminNote); }