Skip to content

Commit

Permalink
Issue #1172: Graph api 12 deprecated fields in page object
Browse files Browse the repository at this point in the history
  • Loading branch information
nbartels committed Sep 26, 2021
1 parent 191681a commit 0ee509e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/lombok/com/restfb/types/Page.java
Expand Up @@ -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")
Expand Down Expand Up @@ -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<PageAdminNote> getAdminNotes() {
return unmodifiableList(adminNotes);
}

@Deprecated
public boolean addAdminNote(PageAdminNote adminNote) {
return adminNotes.add(adminNote);
}

@Deprecated
public boolean removeAdminNote(PageAdminNote adminNote) {
return adminNotes.remove(adminNote);
}
Expand Down

0 comments on commit 0ee509e

Please sign in to comment.