Friday, January 10, 2014

Use ShareSDK will share information to the qq space error

2013-02-22 11:57:15.722 ProjectName [4308:19 d03] share failed with error code: 100031, Error Description: app has no privilege to use this api
The function call is
 / / shareContentWithShareList directly 
information sharing channel qq space[ShareSDK shareContentWithShareList: [ShareSDK getShareListWithType: ShareTypeQQSpace, nil]
content: [ShareSDK publishContent: CONTENT
defaultContent: @ ""
image: [UIImage imageNamed: @ "closeSel.png"] / / shared image resource
imageQuality: 0.8
mediaType: SSPublishContentMediaTypeNews
title: @ "ShareSDK"
url: @ "http://www.sharesdk.cn"
musicFileUrl: nil
extInfo: nil
fileData: nil]
statusBarTips: YES
result: ^ (ShareType type, SSPublishContentState state, id statusInfo, id error, BOOL end) {
if (state == SSPublishContentStateSuccess)
{
NSLog (@ "shared success");
}
else if (state == SSPublishContentStateFail)
{
NSLog (@ "Sharing failed with error code:% d, error description:% @", [error errorCode], [error errorDescription]) ;/ / last program appear here: Sharing failed with error code: 100031, Error Description: app has no privilege to use this api
}
}];

I've been on ShareConfig.h and-Info.plist made the appropriate changes
 # pragma mark - QQ space configuration application information 
/ / Apply to join the QQ login on http://connect.qq.com/intro/login/, and fill in the relevant information to the following fields

/ / NSString * ssQqSpaceAppKey = @ "100371282";
/ / NSString * ssQqSpaceAppSecret = @ "aed9b0303e3ed1e27bae87c33761161d";

NSString * ssQqSpaceAppKey = @ "100380964";
NSString * ssQqSpaceAppSecret = @ "691532a5aae835e84ea67010e6bdfbb2";

Reply:

/ / NSString * ssQqSpaceAppKey = @ "100371282";
/ / NSString * ssQqSpaceAppSecret = @ "aed9b0303e3ed1e27bae87c33761161d";
Pro, if you use the SDK inside the original APPKey and AppSecret, can be shared, right? Please check whether your application development platform by the audit!
Reply:
How to solve it?
Reply:
The reply was deleted administrator at 2013-09-24 13:19:23

Reply:
Through the audit, it appears the problem ......, seeking to solve the Great God
Reply:
Encountered the issue of consent. . .
Reply:
Solving ah. Top up
Reply:
Solving ah, ah know why
Reply:
Find Great God rescued the same problem

No comments:

Post a Comment