我正在尝试与Google+联系人分享时间卡。 我所做的所有测试都是一对一(私人)股票。
如果我只设置'html'属性,则共享将为空(除了#throughglass标记)。
如果我只设置'text'属性,则共享将包含'text'设置为的字符串值(以及hash标签)。
如果我同时设置'html'和'text'属性,则共享将包含'text'设置为的字符串值(以及hash标签)。
这是预期的行为,还是有办法分享HTML内容?
I am trying to share timeline cards with Google+ contacts. All the testing I've done is with one-to-one (private) shares.
If I set only the 'html' property, the share will be blank (other than the #throughglass tag).
If I set only the 'text' property, the share will include the string value that 'text' is set to (and the hash tag).
If I set both the 'html' and 'text' properties, the share will include the string value that 'text' is set to (and the hash tag).
Is this the expected behavior, or is there a way to share html content?
最满意答案
这是预期的行为。
如果要共享HTML内容,可以添加自定义菜单选项,该选项将时间轴项及其所有参数发送到服务器。 然后,您可以解析时间轴项目的HTML参数,并使用Google+ API将其发送到Google+ 。
This is expected behavior.
If you want to share HTML content, you can add a custom menu option, which will send the timeline item and all its parameters to your server. You can then parse the timeline item's HTML parameter and send it to Google+ with the Google+ API.
更多推荐
发布评论