Skip to main content

Posts

Showing posts with the label oauth

Zend_Gdata and OAuth

I successfully retrieved token key / secret after applying Google Hybrid Protocol (OpenID + OAuth). Then I'm looking into Zend documentation here: http://framework.zend.com/manual/en/zend.gdata.html ... and into Calendar API example here: http://code.google.com/googleapps/marketplace/tutorial_php.html#Integrate-OAuth They mention about AuthSub method supported by Zend_Gdata library (especially in Zend_Gdata_HttpClient class form what I can see). But I cannot figure out how to use my key/secret tokens retrieved by Hybrid method in order to access calendar feeds. Example mentioned above uses AuthSub authentication, while Google recommends to switch to OAuth if possible and where possible, instead of using AuthSub. Any ideas? Thanks.

Facebook authentication error - The operation couldn’t be completed

I have an option in my game for users to post an achievement to their wall. If they are logged in, i.e. their token is still active, it works fine. However, if they need to renew their token, the app exits and the Facebook authentication page loads for a second before returning to the app (they only need to click OK on the authentication page if they have actively logged out, otherwise it happens automatically). The problem is that if this happens, when the game returns, the request fails. But since they're now logged in, if they were to press the 'share to wall' button a second time, it works fine. The error message output by the failed request it: DIDLOGIN 2012-02-21 12:01:33.502[18153:15803] Response received 2012-02-21 12:01:33.502[18153:15803] Request did load raw response 2012-02-21 12:01:33.502[18153:15803] Request failed, error: Error Domain=facebookErrDomain Code=10000 "The operation couldn’t be completed. (facebookErrDomain error 10000.)" UserInfo=0x