Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image Sharing Using Google Plus in ios

I want to share image on google plus:

I have used google+ api

AppDelegate.m

[GPPSignIn sharedInstance].clientID = @"MyClientID";
[GPPDeepLink setDelegate:self];
[GPPDeepLink readDeepLinkAfterInstall];

and on button action

ViewController.m

id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];

[shareBuilder setURLToShare:[NSURL URLWithString:@"http://dummy.com"]];
[shareBuilder setTitle:@"Some title" description:@"Some description" thumbnailURL:[NSURL URLWithString:@"http://dummy.com/image"]];
[shareBuilder setContentDeepLinkID:@"MyclientID"];
[shareBuilder open];

but on click it crashes ans error shows:

-[__NSDictionaryM gtm_httpArgumentsString]: unrecognized selector sent to instance 0x1e887ea0'

it crashes on [shareBuilder open]

like image 654
Chitra Khatri Avatar asked Jul 25 '13 12:07

Chitra Khatri


People also ask

Is Google Photos compatible with iOS?

Live photos can be backed up if you use the Google Photos app on your iPhone or iPad.

Does Google Plus automatically share photos?

You can share photos of specific people or share photos from a specific date onward. Photos will be shared automatically as they are backed up to your account. Face group filtering is not available in all countries.


1 Answers

It is because you dont have set the other linker Flag, Go to Build Setting and then Other Linker Flags: -ObjC

like image 189
Amit Bhavsar Avatar answered Oct 09 '22 15:10

Amit Bhavsar