Iphone 谷歌+;共享获取错误警报
我必须在Google plus上分享一些文本,但它显示了警告,保存您的帖子时出现问题。请重试google plus。我正在使用 1) 我这边怎么了? 2) 如何修复此警报Iphone 谷歌+;共享获取错误警报,iphone,ios,google-plus,Iphone,Ios,Google Plus,我必须在Google plus上分享一些文本,但它显示了警告,保存您的帖子时出现问题。请重试google plus。我正在使用 1) 我这边怎么了? 2) 如何修复此警报 多谢各位 如果您没有使用Google+实现登录,那么您必须首先实现。如果您已经实现登录,那么请查看以下共享代码: - (void)googlePlusShare { [GPPShare sharedInstance].delegate = self; id<GPPShareBuilder> shar
多谢各位 如果您没有使用Google+实现登录,那么您必须首先实现。
如果您已经实现登录,那么请查看以下共享代码:
- (void)googlePlusShare
{
[GPPShare sharedInstance].delegate = self;
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
// This line will manually fill out the title, description, and thumbnail of the
// item you're sharing.
// thumbnailURL is url of image you want to display.
[shareBuilder setTitle:@"Title of your post"
description:@"Description of your post"
thumbnailURL:[NSURL URLWithString:@"https:www.example.com/image.png"]];
/* This line passes the deepLinkID to our application
if somebody opens the link on a supported mobile device */
[shareBuilder setContentDeepLinkID:@"share"];
// set the text of post. user can edit this before sharing.
[shareBuilder setPrefillText:@"Your post texts."];
[shareBuilder open];
}
有关Google+共享的更多详细信息,请查看
编辑:我建议您首先检查您的
登录实现是否正常工作。如果您没有使用Google+实现登录,则必须先实现。
如果您已经实现,请查看此代码以共享:
- (void)googlePlusShare
{
[GPPShare sharedInstance].delegate = self;
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
// This line will manually fill out the title, description, and thumbnail of the
// item you're sharing.
// thumbnailURL is url of image you want to display.
[shareBuilder setTitle:@"Title of your post"
description:@"Description of your post"
thumbnailURL:[NSURL URLWithString:@"https:www.example.com/image.png"]];
/* This line passes the deepLinkID to our application
if somebody opens the link on a supported mobile device */
[shareBuilder setContentDeepLinkID:@"share"];
// set the text of post. user can edit this before sharing.
[shareBuilder setPrefillText:@"Your post texts."];
[shareBuilder open];
}
有关Google+共享的更多详细信息,请查看
编辑:我建议您首先检查您的登录
实现是否正常工作。如果您发布代码会更好。谢谢。但我还是得到了同样的警告。但是我不知道这个问题的原因。@Mani你能发布你的代码让我看看吗?另外,您是否已经实现了Google+登录,这是否正确?如果您发布代码会更好。谢谢阿卡什。但我还是得到了同样的警告。但是我不知道这个问题的原因。@Mani你能发布你的代码让我看看吗?另外,您是否已实现Google+登录,并且该功能是否正常?发布不起作用的代码。发布不起作用的代码。