There are two things going on here:
1. The subscriber sends hub.verify_token to the hub. The hub forwards
this back to the subscriber so the subscriber can verify the request
came from that hub and/or use the token as a handle to some internal
data structure. The hub.verify_token never has to be echoed back to
the hub for verification; it's optional and only used by subscribers
for convenience.
2. The hub sends the hub.challenge parameter to the subscriber to
verify the subscription. The subscriber must respond with that
challenge as the response body to validate the subscription.
Hope that helps,
-Brett
Okay, I think that clarifies things. When a hub sends out a
notification it can pass along a hub.verify_token value (if one was
provided by the original notification request) but doesn't expect it
to be provided back as part of the response.
>
> 2. The hub sends the hub.challenge parameter to the subscriber to
> verify the subscription. The subscriber must respond with that
> challenge as the response body to validate the subscription.
That part I got, my confusion came from the idea that hub.verify_token
(if one was provided) also had to be in the response. Since that
isn't the case my question is void I suppose.
--
Joseph Scott
jos...@josephscott.org
http://josephscott.org/