Instagram-PHP-API icon indicating copy to clipboard operation
Instagram-PHP-API copied to clipboard

Signed Header is not working

Open maudiruiz opened this issue 9 years ago • 4 comments

I'm trying to do a user-like experiment and I'm using the method: $instagram->setSignedHeader(true); However my petitions are not getting signed and I'm restricted to the 30 petitions per hour.

"The maximum number of requests per hour has been exceeded. You have made 35 requests of the 30 allowed in the last hour."

The is something wrong with the Signed Header method... Can't figure out what. My app has the: Enforce signed header ENABLED And I'm passing the user token with the setAccessToken() method...

maudiruiz avatar Apr 13 '15 17:04 maudiruiz

same here. @maudiruiz did you find a solution?

jurajivan avatar Aug 10 '15 13:08 jurajivan

any update on this? same situation...

soulpawa avatar Sep 04 '15 06:09 soulpawa

Looks like the scheme for generating signatures has changed.

Currently the library is doing...

private function _signHeader() {
    $ipAddress = $_SERVER['SERVER_ADDR'];
    $signature = hash_hmac('sha256', $ipAddress, $this->_apisecret, false);
    return join('|', array($ipAddress, $signature));
}

flashbackzoo avatar Jul 26 '16 04:07 flashbackzoo

@cosenary @vinkla I see there's some discussion on the future of this project. If I create a pull request for this issue, is it likely to be reviewed / merged?

flashbackzoo avatar Jul 26 '16 04:07 flashbackzoo