Skip to content

Commit

Permalink
Source Facebook Pages: update connector to API v21 (#52122)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanyloGL authored Jan 29, 2025
1 parent 2359e36 commit b7f5d62
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 010eb12f-837b-4685-892d-0a39f76a98f5
dockerImageTag: 1.0.30
dockerImageTag: 1.0.31
dockerRepository: airbyte/source-facebook-pages
documentationUrl: https://docs.airbyte.com/integrations/sources/facebook-pages
githubIssueLabel: source-facebook-pages
Expand Down
73 changes: 71 additions & 2 deletions airbyte-integrations/connectors/source-facebook-pages/poetry.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "1.0.30"
version = "1.0.31"
name = "source-facebook-pages"
description = "Source implementation for Facebook Pages."
authors = [ "Airbyte <[email protected]>",]
Expand Down
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/v19.0"
url_base: "https://graph.facebook.com/v21.0"
http_method: "GET"
error_handler:
type: CompositeErrorHandler
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/v19.0/1", [{"status_code": error_code}, {"json": {"data": {}}}])
requests_mock.get("https://graph.facebook.com/v21.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
95 changes: 48 additions & 47 deletions docs/integrations/sources/facebook-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,52 +86,53 @@ See Facebook's [documentation on rate limiting](https://developers.facebook.com/
<details>
<summary>Expand to review</summary>

| Version | Date | Pull Request | Subject |
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------------ |
| 1.0.30 | 2025-01-25 | [52373](https://github.com/airbytehq/airbyte/pull/52373) | Update dependencies |
| 1.0.29 | 2025-01-18 | [51637](https://github.com/airbytehq/airbyte/pull/51637) | Update dependencies |
| 1.0.28 | 2025-01-11 | [51056](https://github.com/airbytehq/airbyte/pull/51056) | Update dependencies |
| 1.0.27 | 2025-01-04 | [50923](https://github.com/airbytehq/airbyte/pull/50923) | Update dependencies |
| 1.0.26 | 2024-12-28 | [50530](https://github.com/airbytehq/airbyte/pull/50530) | Update dependencies |
| 1.0.25 | 2024-12-21 | [49997](https://github.com/airbytehq/airbyte/pull/49997) | Update dependencies |
| 1.0.24 | 2024-12-14 | [49154](https://github.com/airbytehq/airbyte/pull/49154) | Starting with this version, the Docker image is now rootless. Please note that this and future versions will not be compatible with Airbyte versions earlier than 0.64 |
| 1.0.23 | 2024-10-29 | [47737](https://github.com/airbytehq/airbyte/pull/47737) | Update dependencies |
| 1.0.22 | 2024-10-21 | [47025](https://github.com/airbytehq/airbyte/pull/47025) | Update dependencies |
| 1.0.21 | 2024-10-12 | [46807](https://github.com/airbytehq/airbyte/pull/46807) | Update dependencies |
| 1.0.20 | 2024-10-05 | [46461](https://github.com/airbytehq/airbyte/pull/46461) | Update dependencies |
| 1.0.19 | 2024-09-28 | [46133](https://github.com/airbytehq/airbyte/pull/46133) | Update dependencies |
| 1.0.18 | 2024-09-21 | [45734](https://github.com/airbytehq/airbyte/pull/45734) | Update dependencies |
| 1.0.17 | 2024-09-14 | [45563](https://github.com/airbytehq/airbyte/pull/45563) | Update dependencies |
| 1.0.16 | 2024-09-07 | [45311](https://github.com/airbytehq/airbyte/pull/45311) | Update dependencies |
| 1.0.15 | 2024-08-31 | [45052](https://github.com/airbytehq/airbyte/pull/45052) | Update dependencies |
| 1.0.14 | 2024-08-24 | [44664](https://github.com/airbytehq/airbyte/pull/44664) | Update dependencies |
| 1.0.13 | 2024-08-17 | [44234](https://github.com/airbytehq/airbyte/pull/44234) | Update dependencies |
| 1.0.12 | 2024-08-12 | [43729](https://github.com/airbytehq/airbyte/pull/43729) | Update dependencies |
| 1.0.11 | 2024-08-10 | [43477](https://github.com/airbytehq/airbyte/pull/43477) | Update dependencies |
| 1.0.10 | 2024-08-03 | [43224](https://github.com/airbytehq/airbyte/pull/43224) | Update dependencies |
| 1.0.9 | 2024-07-27 | [42787](https://github.com/airbytehq/airbyte/pull/42787) | Update dependencies |
| 1.0.8 | 2024-07-20 | [42255](https://github.com/airbytehq/airbyte/pull/42255) | Update dependencies |
| 1.0.7 | 2024-07-13 | [41685](https://github.com/airbytehq/airbyte/pull/41685) | Update dependencies |
| 1.0.6 | 2024-07-10 | [41543](https://github.com/airbytehq/airbyte/pull/41543) | Update dependencies |
| 1.0.5 | 2024-07-09 | [41126](https://github.com/airbytehq/airbyte/pull/41126) | Update dependencies |
| 1.0.4 | 2024-07-06 | [40812](https://github.com/airbytehq/airbyte/pull/40812) | Update dependencies |
| 1.0.3 | 2024-06-25 | [40500](https://github.com/airbytehq/airbyte/pull/40500) | Update dependencies |
| 1.0.2 | 2024-06-22 | [40058](https://github.com/airbytehq/airbyte/pull/40058) | Update dependencies |
| 1.0.1 | 2024-06-06 | [39243](https://github.com/airbytehq/airbyte/pull/39243) | [autopull] Upgrade base image to v1.2.2 |
| 1.0.0 | 2024-03-14 | [36015](https://github.com/airbytehq/airbyte/pull/36015) | 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 |
| 0.2.3 | 2023-02-23 | [23395](https://github.com/airbytehq/airbyte/pull/23395) | Parse datetime to rfc3339 |
| 0.2.2 | 2023-02-10 | [22804](https://github.com/airbytehq/airbyte/pull/22804) | Retry 500 errors |
| 0.2.1 | 2022-12-29 | [20925](https://github.com/airbytehq/airbyte/pull/20925) | Fix tests; modify expected records |
| 0.2.0 | 2022-11-24 | [19788](https://github.com/airbytehq/airbyte/pull/19788) | Migrate lo low-code; Beta certification; Upgrade Facebook API to v.15 |
| 0.1.6 | 2021-12-22 | [9032](https://github.com/airbytehq/airbyte/pull/9032) | Remove deprecated field `live_encoders` from Page stream |
| 0.1.5 | 2021-11-26 | [8267](https://github.com/airbytehq/airbyte/pull/8267) | updated all empty objects in schemas for Page and Post streams |
| 0.1.4 | 2021-11-26 | [](https://github.com/airbytehq/airbyte/pull/) | Remove unsupported insights_export field from Pages request |
| 0.1.3 | 2021-10-28 | [7440](https://github.com/airbytehq/airbyte/pull/7440) | Generate Page token from config access token |
| 0.1.2 | 2021-10-18 | [7128](https://github.com/airbytehq/airbyte/pull/7128) | Upgrade Facebook API to v.12 |
| 0.1.1 | 2021-09-30 | [6438](https://github.com/airbytehq/airbyte/pull/6438) | Annotate Oauth2 flow initialization parameters in connector specification |
| 0.1.0 | 2021-09-01 | [5158](https://github.com/airbytehq/airbyte/pull/5158) | Initial Release |
| Version | Date | Pull Request | Subject |
|:--------|:-----------| :------------------------------------------------------- |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1.0.31 | 2025-01-27 | [52122](https://github.com/airbytehq/airbyte/pull/52122/files) | Upgrade Facebook API to v21.0 |
| 1.0.30 | 2025-01-25 | [52373](https://github.com/airbytehq/airbyte/pull/52373) | Update dependencies |
| 1.0.29 | 2025-01-18 | [51637](https://github.com/airbytehq/airbyte/pull/51637) | Update dependencies |
| 1.0.28 | 2025-01-11 | [51056](https://github.com/airbytehq/airbyte/pull/51056) | Update dependencies |
| 1.0.27 | 2025-01-04 | [50923](https://github.com/airbytehq/airbyte/pull/50923) | Update dependencies |
| 1.0.26 | 2024-12-28 | [50530](https://github.com/airbytehq/airbyte/pull/50530) | Update dependencies |
| 1.0.25 | 2024-12-21 | [49997](https://github.com/airbytehq/airbyte/pull/49997) | Update dependencies |
| 1.0.24 | 2024-12-14 | [49154](https://github.com/airbytehq/airbyte/pull/49154) | Starting with this version, the Docker image is now rootless. Please note that this and future versions will not be compatible with Airbyte versions earlier than 0.64 |
| 1.0.23 | 2024-10-29 | [47737](https://github.com/airbytehq/airbyte/pull/47737) | Update dependencies |
| 1.0.22 | 2024-10-21 | [47025](https://github.com/airbytehq/airbyte/pull/47025) | Update dependencies |
| 1.0.21 | 2024-10-12 | [46807](https://github.com/airbytehq/airbyte/pull/46807) | Update dependencies |
| 1.0.20 | 2024-10-05 | [46461](https://github.com/airbytehq/airbyte/pull/46461) | Update dependencies |
| 1.0.19 | 2024-09-28 | [46133](https://github.com/airbytehq/airbyte/pull/46133) | Update dependencies |
| 1.0.18 | 2024-09-21 | [45734](https://github.com/airbytehq/airbyte/pull/45734) | Update dependencies |
| 1.0.17 | 2024-09-14 | [45563](https://github.com/airbytehq/airbyte/pull/45563) | Update dependencies |
| 1.0.16 | 2024-09-07 | [45311](https://github.com/airbytehq/airbyte/pull/45311) | Update dependencies |
| 1.0.15 | 2024-08-31 | [45052](https://github.com/airbytehq/airbyte/pull/45052) | Update dependencies |
| 1.0.14 | 2024-08-24 | [44664](https://github.com/airbytehq/airbyte/pull/44664) | Update dependencies |
| 1.0.13 | 2024-08-17 | [44234](https://github.com/airbytehq/airbyte/pull/44234) | Update dependencies |
| 1.0.12 | 2024-08-12 | [43729](https://github.com/airbytehq/airbyte/pull/43729) | Update dependencies |
| 1.0.11 | 2024-08-10 | [43477](https://github.com/airbytehq/airbyte/pull/43477) | Update dependencies |
| 1.0.10 | 2024-08-03 | [43224](https://github.com/airbytehq/airbyte/pull/43224) | Update dependencies |
| 1.0.9 | 2024-07-27 | [42787](https://github.com/airbytehq/airbyte/pull/42787) | Update dependencies |
| 1.0.8 | 2024-07-20 | [42255](https://github.com/airbytehq/airbyte/pull/42255) | Update dependencies |
| 1.0.7 | 2024-07-13 | [41685](https://github.com/airbytehq/airbyte/pull/41685) | Update dependencies |
| 1.0.6 | 2024-07-10 | [41543](https://github.com/airbytehq/airbyte/pull/41543) | Update dependencies |
| 1.0.5 | 2024-07-09 | [41126](https://github.com/airbytehq/airbyte/pull/41126) | Update dependencies |
| 1.0.4 | 2024-07-06 | [40812](https://github.com/airbytehq/airbyte/pull/40812) | Update dependencies |
| 1.0.3 | 2024-06-25 | [40500](https://github.com/airbytehq/airbyte/pull/40500) | Update dependencies |
| 1.0.2 | 2024-06-22 | [40058](https://github.com/airbytehq/airbyte/pull/40058) | Update dependencies |
| 1.0.1 | 2024-06-06 | [39243](https://github.com/airbytehq/airbyte/pull/39243) | [autopull] Upgrade base image to v1.2.2 |
| 1.0.0 | 2024-03-14 | [36015](https://github.com/airbytehq/airbyte/pull/36015) | 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 |
| 0.2.3 | 2023-02-23 | [23395](https://github.com/airbytehq/airbyte/pull/23395) | Parse datetime to rfc3339 |
| 0.2.2 | 2023-02-10 | [22804](https://github.com/airbytehq/airbyte/pull/22804) | Retry 500 errors |
| 0.2.1 | 2022-12-29 | [20925](https://github.com/airbytehq/airbyte/pull/20925) | Fix tests; modify expected records |
| 0.2.0 | 2022-11-24 | [19788](https://github.com/airbytehq/airbyte/pull/19788) | Migrate lo low-code; Beta certification; Upgrade Facebook API to v.15 |
| 0.1.6 | 2021-12-22 | [9032](https://github.com/airbytehq/airbyte/pull/9032) | Remove deprecated field `live_encoders` from Page stream |
| 0.1.5 | 2021-11-26 | [8267](https://github.com/airbytehq/airbyte/pull/8267) | updated all empty objects in schemas for Page and Post streams |
| 0.1.4 | 2021-11-26 | [](https://github.com/airbytehq/airbyte/pull/) | Remove unsupported insights_export field from Pages request |
| 0.1.3 | 2021-10-28 | [7440](https://github.com/airbytehq/airbyte/pull/7440) | Generate Page token from config access token |
| 0.1.2 | 2021-10-18 | [7128](https://github.com/airbytehq/airbyte/pull/7128) | Upgrade Facebook API to v.12 |
| 0.1.1 | 2021-09-30 | [6438](https://github.com/airbytehq/airbyte/pull/6438) | Annotate Oauth2 flow initialization parameters in connector specification |
| 0.1.0 | 2021-09-01 | [5158](https://github.com/airbytehq/airbyte/pull/5158) | Initial Release |

</details>

0 comments on commit b7f5d62

Please sign in to comment.