Is it possible to post on google plus directly wit

2019-06-09 15:42发布

Is there any way to post directly on google Plus without extra share on web,

Now i am successfully posting on google Plus, every time i do like below, but

    id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
    // do additional stuff like filling the text message to "shareBuilder"
    ...
    ...
    //after this 
    [shareBuilder open]; //this leads to open web page where google provides its own share button  


what my problem is, i want to post directly on google plus by bypassing this web page is there any way i can achieve this or this is the mandatory steps that we have to share through this "web share". i tried searching on it, but i did'nt find any thing. I need more help on this

Thanks in regards :)

2条回答
贪生不怕死
2楼-- · 2019-06-09 16:07

In the Google+ iOS SDK 1.4.0, you can now use native in-app sharing. This partially resolves I think one of your concerns about leaving your app. There is no Google+ API on ANY platform that will allow you to post directly to the stream though. Users always retain control over what they share on Google+.

To migrate to the native sharing method, use the following code:

id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
// do additional stuff like filling the text message to "shareBuilder"
...
...
//after this 
[shareBuilder open]; // Open the native share dialog

You will also need to include some additional frameworks in your XCode project, see the list on the getting started page.

查看更多
叼着烟拽天下
3楼-- · 2019-06-09 16:19

Currently it is mandatory to use the share dialog so that the user is in control of all posts made to their stream.

查看更多
登录 后发表回答