Hi guys,
I just tried out the Social SDK for mac/iphone. It seems the last update was back in June. Documentation for integration shown in this link
http://developer.yahoo.com/social/sdk/objectivec/is different from that of the source code.
[session sendUserToAuthorizationWithCallback:nil]; The line above is specified in the instruction, but this method does not exist in the method. instead, a similar method is found
/**
* Automatically fetches a new request token and opens the native browser for the user to login.
* @param callbackUrl An optional callback URL.
*/
- (void)sendUserToAuthorizationWithCallbackUrl:(NSString *)callbackUrl;
As specified in the instruction in the method, the callbackURL is optional. So i replaced
sendUserToAuthorizationWithCallback with
sendUserToAuthorizationWithCallbackURL , and run the app.
The application just crashed because in line 160 of YOSSession.m,
newRequestToken.key and
newRequestToken.secret are both null. I have placed the key, secret and appid in my request. Unable to go continue because I'm not sure if it's my fault, or the code is outdated. Can't seem to find any documentation online about this, so I guess this isn't used frequently.
Hope someone can get back to me.