0

YahooSession return null

hello
sorry i cant speak english very well

i have CONSUMER_KEY and CONSUMER_SECRET and APPID

but in
$callback = YahooUtil::current_url();
$auth_url = YahooSession::createAuthorizationUrl(CONSUMER_KEY, CONSUMER_SECRET, $callback);

$auth_url is null


and in

$session = YahooSession::requireSession(CONSUMER_KEY, CONSUMER_SECRET, APPID);

$session is null

what is problem???
my application have worked very well
but Disabled 3 days ago

by
3 Replies
  • DEBUG - HTTP request details
    DEBUG OBJECT - Array
    (
        [method] => POST
        [url] => https://api.login.yahoo.com/oauth/v2/get_request_token
        [code] => 401
        [requestHeaders] => Array
            (
                [0] => Accept: application/json
                [1] => Content-Type: application/x-www-form-urlencoded
            )

        [requestBody] => oauth_callback=http://site.com/yahoo.php&&oauth_consumer_key=dj0yJmk9eGtvSU1rU2pRZDJrJmQ9WVdrOVZHbHdjM1kzTnpRbWNHbzlNVE0yT0RFd01qUTJNZy0tJnM9Y29uc3VtZXJzZWNyZXQmeD1jOQ--&&oauth_nonce=42be395256c757ca64305218fb61d17e&&oauth_signature=W7P9AjWR4xIFAhtGttD%2FE3jqCfA%3D&&oauth_signature_method=HMAC-SHA1&&oauth_timestamp=1348918186&&oauth_version=1.0
        [responseHeaders] => Array
            (
                [Date] => Sat, 29 Sep 2012 11:40:07 GMT
                [P3P] => policyref="http://info.yahoo.com/w3c/p3p.xml", CP="CAO DSP COR CUR ADM DEV TAI PSA PSD IVAi IVDi CONi TELo OTPi OUR DELi SAMi OTRi UNRi PUBi IND PHY ONL UNI PUR FIN COM NAV INT DEM CNT STA POL HEA PRE LOC GOV"
                [WWW-Authenticate] => OAuth oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1348918207-1348919407
                [Connection] => close
                [Transfer-Encoding] => chunked
                [Content-Type] => application/x-www-form-urlencoded
                [Cache-Control] => private
            )

        [responseBody] => oauth_problem=timestamp_refused&oauth_acceptable_timestamps=1348918207-1348919407
    )

    ERROR - Failed to create request token: timestamp_refused
    ERROR - Failed to create request token
    1
  • Hi,

    I am facing the same problem, can you please tell me the solution if you resolved then.

    Please reply me.

    Thanks.

    1
  • i m facing the same problem $session=YahooSession::requireSession() not returning returning any thing.insteadt when i am printing $session .its redirecting me to a blank page.please help.

    1

Recent Posts

in Contacts