vishwa
vishwa

Reputation: 147

How can I integrate Google Plus with iPhone sdk?

I want to integrate google plus in my application,but I dont know from where to start,so if any one having idea about this please reply me.

Upvotes: 1

Views: 11686

Answers (4)

NaXir
NaXir

Reputation: 2413

Here is a small sample code to start with. You can share a text and an image url etc via this code.

Try this

Upvotes: 0

Mohamed Zoweil
Mohamed Zoweil

Reputation: 1

Visit the G+ iOS integration page: https://developers.google.com/+/quickstart/ios

You can find examples on how to integrate your app with the G+ SDK, how to add a "Sign in with Google+" button, and how to get user information.

For a complete sample you can checkout the "PhotoHunt" sample application: https://developers.google.com/+/photohunt/

Upvotes: 0

ilight
ilight

Reputation: 1622

Follow this as the basis -> https://developers.google.com/+/api/

1) Go to https://code.google.com/apis/console and request for an API key for yourself to be able to access google plus.

2) Then, check the "Fetching JSON Over HTTP" part in this link for how to integrate google plus into your iOS app. It worked for me. However, google currently gave only GET permission, so I don't think we can post updates using this to googleplus, sadly.

3) Then, your code might look like

-(void)viewDidLoad
{
    [super viewDidLoad];

    responseData = [[NSMutableData data] retain];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.googleapis.com/plus/v1/people/{userId}?key={your-api-key}"]];
    [[NSURLConnection alloc] initWithRequest:request delegate:self];
}

Let me know if you still have doubts.

Upvotes: 5

Ankur
Ankur

Reputation: 33637

You need to use Google plus API.

Upvotes: 2

Related Questions