简体   繁体   中英

Is it possible to post on google plus directly without additional share dialog on web

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 :)

当前,必须使用共享对话框,以便用户可以控制对其信息流所做的所有帖子。

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM