cosenary / Instagram-PHP-API

An easy-to-use PHP Class for accessing Instagram's API.
http://cosenary.github.com/Instagram-PHP-API
BSD 3-Clause "New" or "Revised" License
1.46k stars 780 forks source link

Signed Header is not working #124

Open maudiruiz opened 9 years ago

maudiruiz commented 9 years ago

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...

jurajivan commented 9 years ago

same here. @maudiruiz did you find a solution?

soulpawa commented 9 years ago

any update on this? same situation...

flashbackzoo commented 8 years ago

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 commented 8 years ago

@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?