Instagram how to verify X-Hub-Signature in php
php
Solution
hash_hmac( 'sha1', $postdata,'mysecret')
thanks to Payom Dousti
https://groups.google.com/forum/?fromgroups=#!topic/instagram-api-developers/7nKyipJENdI
Problem
What's the right way to verify `X-Hub-Signature` in php? I tried with ``` $xHubSignature = $request->getHeader('X-Hub-Signature'); $postdata = file_get_contents("php://input"); $body = $request->getRawBody( ); $check = sha1('mysecret'.$postdata); ``` but it doesn't work.