我在项目中使用mob_sharesdk实现Facebook的分享。分享代码如下:
[shareParams SSDKSetupFacebookParamsByText:content image:imgUrl url:[NSURL URLWithString:urlStr] urlTitle:title urlName:nil attachementUrl:nil hashtag:nil quote:nil shareType:SSDKFacebookShareTypeNative type:SSDKContentTypeAuto];
然后就出现了报错:
Error Domain=ShareSDKErrorDomain Code=200105 "(null)" UserInfo={error_code=200105, description=native type Unsupported Feature!}
问了mob的技术人员告诉我使用type选用SSDKContentTypeWebPage,果然就好了。
[shareParams SSDKSetupFacebookParamsByText:content image:imgUrl url:[NSURL URLWithString:urlStr] urlTitle:title urlName:nil attachementUrl:nil hashtag:nil quote:nil shareType:SSDKFacebookShareTypeNative type:SSDKContentTypeWebPage];
网友评论