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

ぃ、小莉子 提交于 2019-12-10 12:04:00

问题


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


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/18080780/is-it-possible-to-post-on-google-plus-directly-without-additional-share-dialog-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!