Skip to content

Commit

Permalink
source facebook pages: upgrade v19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
airt committed Feb 20, 2024
1 parent 6e8b87f commit 8877223
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ definitions:
extractor:
field_path: ["data"]
requester:
url_base: "https://graph.facebook.com/v15.0"
url_base: "https://graph.facebook.com/v19.0"
http_method: "GET"
error_handler:
type: CompositeErrorHandler
Expand Down Expand Up @@ -142,7 +142,6 @@ definitions:
'members',
'merchant_review_status',
'messenger_ads_default_icebreakers',
'messenger_ads_default_page_welcome_message',
'messenger_ads_default_quick_replies',
'messenger_ads_quick_replies_type',
'mission',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@
"type": ["string", "null"]
}
},
"messenger_ads_default_page_welcome_message": {
"$ref": "messengerdestinationpagewelcomemessage.json"
},
"messenger_ads_default_quick_replies": {
"type": ["array", "null"],
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"before": "cursor",
"after": "cursor"
},
"next": "https://graph.facebook.com/v15.0/"
"next": "https://graph.facebook.com/v19.0/"
}
},
"indexed_videos": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def test_retries(mocker, requests_mock, error_code):
mocker.patch("time.sleep")
requests_mock.get("https://graph.facebook.com/1?fields=access_token&access_token=token", json={"access_token": "access"})
requests_mock.get("https://graph.facebook.com/v15.0/1", [{"status_code": error_code}, {"json": {"data": {}}}])
requests_mock.get("https://graph.facebook.com/v19.0/1", [{"status_code": error_code}, {"json": {"data": {}}}])
source = SourceFacebookPages()
stream = source.streams({"page_id": 1, "access_token": "token"})[0]
for slice_ in stream.stream_slices(sync_mode="full_refresh"):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
"before": "cursor",
"after": "cursor"
},
"next": "https://graph.facebook.com/v15.0/"
"next": "https://graph.facebook.com/v19.0/"
}
},
"indexed_videos": {
Expand Down
9 changes: 5 additions & 4 deletions docs/integrations/sources/facebook-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ The Facebook Pages source connector supports the following [sync modes](https://

## Supported Streams

- [Page](https://developers.facebook.com/docs/graph-api/reference/v15.0/page/#overview)
- [Post](https://developers.facebook.com/docs/graph-api/reference/v15.0/page/feed)
- [Page Insights](https://developers.facebook.com/docs/graph-api/reference/v15.0/page/insights)
- [Post Insights](https://developers.facebook.com/docs/graph-api/reference/v15.0/insights)
- [Page](https://developers.facebook.com/docs/graph-api/reference/v19.0/page/#overview)
- [Post](https://developers.facebook.com/docs/graph-api/reference/v19.0/page/feed)
- [Page Insights](https://developers.facebook.com/docs/graph-api/reference/v19.0/page/insights)
- [Post Insights](https://developers.facebook.com/docs/graph-api/reference/v19.0/insights)

## Data type map

Expand All @@ -85,6 +85,7 @@ See Facebook's [documentation on rate limiting](https://developers.facebook.com/

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------ |
| 0.3.1 | 2024-02-20 | [00000](https://github.com/airbytehq/airbyte/pull/00000) | Upgrade Facebook API to v19.0 |
| 0.3.0 | 2023-06-26 | [27728](https://github.com/airbytehq/airbyte/pull/27728) | License Update: Elv2 |
| 0.2.5 | 2023-04-13 | [26939](https://github.com/airbytehq/airbyte/pull/26939) | Add advancedAuth to the connector spec |
| 0.2.4 | 2023-04-13 | [25143](https://github.com/airbytehq/airbyte/pull/25143) | Update insight metrics request params |
Expand Down

0 comments on commit 8877223

Please sign in to comment.