instagram_connect 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/instagram_connect/auth/facebook_login.rb +12 -0
- data/lib/instagram_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d196a916e3801d14b1247878e731491aedc6adcdae7a50b58751d548be182c47
|
|
4
|
+
data.tar.gz: aa43252a57668076b9c8aa72e9ccc605110157ff8437a16d1129482deb091a4f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 995e9d1bbd96a6aa57616b8b9cec8558fe02ef75623d28ac2707ec1bcd3e852d32fa69548a4dcb7cfdbcc2c35154b881d2d27426cb5e1536decec38860b1dc8a
|
|
7
|
+
data.tar.gz: 917737599c1ab1ef4eafe5cfc210e23d66c10f230dda1e882664fc76732c5321d8a2ee54bb3e0b2084f020d4dc085ea357d186a57f022f67490d50970113bf0d
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ All notable changes to this project are documented here. The format follows
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.3.5] - 2026-07-26
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **`pages_messaging` was never requested, so the Page could never be subscribed and Meta delivered
|
|
14
|
+
nothing.** The permission is checked when subscribing a Page to the app — not when calling the
|
|
15
|
+
messaging endpoints — so its absence broke nothing visible and stopped every webhook:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
(#200) To subscribe to the messages field, one of these permissions is needed: pages_messaging
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`subscribed_apps` rejects the entire call on the first field it cannot authorise, so a published
|
|
22
|
+
app holding a valid Page token, with every dashboard field ticked, received nothing at all.
|
|
23
|
+
|
|
24
|
+
### Upgrading
|
|
25
|
+
|
|
26
|
+
Existing accounts hold a token issued before this scope existed and **must reconnect** — a token's
|
|
27
|
+
scopes are fixed at issue. The host's Meta app also needs a use case that offers `pages_messaging`
|
|
28
|
+
("Engage with customers on Messenger from Meta"); the Instagram and Pages use cases do not.
|
|
29
|
+
|
|
30
|
+
|
|
9
31
|
## [0.3.4] - 2026-07-26
|
|
10
32
|
|
|
11
33
|
### Fixed
|
|
@@ -7,6 +7,17 @@ module InstagramConnect
|
|
|
7
7
|
class FacebookLogin < Strategy
|
|
8
8
|
GRAPH = "https://graph.facebook.com".freeze
|
|
9
9
|
DIALOG = "https://www.facebook.com".freeze
|
|
10
|
+
# pages_messaging is what Meta checks when subscribing the PAGE to this app,
|
|
11
|
+
# not when calling the messaging endpoints — so its absence failed silently
|
|
12
|
+
# in the one place nothing was watching:
|
|
13
|
+
#
|
|
14
|
+
# (#200) To subscribe to the messages field, one of these permissions is
|
|
15
|
+
# needed: pages_messaging
|
|
16
|
+
#
|
|
17
|
+
# subscribed_apps rejects the whole call on the first field it cannot
|
|
18
|
+
# authorise, so without this scope the Page is never subscribed and Meta
|
|
19
|
+
# delivers nothing — for an app that is published, holds a valid Page
|
|
20
|
+
# token, and looks correct at every other step.
|
|
10
21
|
DEFAULT_SCOPES = %w[
|
|
11
22
|
instagram_basic
|
|
12
23
|
instagram_manage_messages
|
|
@@ -15,6 +26,7 @@ module InstagramConnect
|
|
|
15
26
|
pages_show_list
|
|
16
27
|
pages_manage_metadata
|
|
17
28
|
pages_read_engagement
|
|
29
|
+
pages_messaging
|
|
18
30
|
].freeze
|
|
19
31
|
|
|
20
32
|
def graph_host
|