Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Missing encoding payload for Facebook #227

Open
scastrec opened this issue Mar 23, 2017 · 0 comments
Open

Missing encoding payload for Facebook #227

scastrec opened this issue Mar 23, 2017 · 0 comments

Comments

@scastrec
Copy link

Hi,

In your verifySignature you forgot to encode the payload before sha1.
The payload has to be encoded in unicode like written in Facebook doc:
https://developers.facebook.com/docs/messenger-platform/webhook-reference#security

Be careful, most of time in java, unicode use uppercase encoding and that won't work.

Source file:
https://github.com/spring-projects/spring-social-facebook/blob/master/spring-social-facebook-web/src/main/java/org/springframework/social/facebook/web/RealTimeUpdateController.java

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant