获取谷歌和Facebook等新闻提要

问题描述 投票:0回答:2

我面临关于google plus实施的2个问题。

  1. 我正在尝试像Facebook一样获取google plus feed。我找到了同一个问题的帖子数量,但没有一个给我正确答案。从谷歌开发者网站,我找到了API来获取活动。 但它提供的是选定的用户帖子,而非墙帖。
  2. 为了在google plus上共享文本/照片,谷歌正在证明本机共享对话框。如何在不使用默认共享框的情况下发布?

为我提供一些解决方案。谢谢

ios objective-c facebook google-api google-plus
2个回答
0
投票

总之,你不能。有一个feature request for point one和一个feature request for point two


0
投票

只需复制此代码即可。

<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<style>
div {
    width: 300px;
    border: 1px solid grey;
    padding-left: 20px;
    padding-bottom: 5px;
    padding-right: 25px;
}
body {margin: 25px; font-family: 'Montserrat', sans-serif;}
</style>
</body>
<div id="" style="overflow: auto; height:400px; width:495px;">
<h1>Change this title</h1>
<h5><i>Write your description here (or completely omit it)...</i></h5>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js" async defer></script>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/PXaD8t9AKpi"></div>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/QDj9aCTypaT"></div>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/Cb2TMZ5nbK8"></div>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/KjRqbTq3p6L"></div>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/67dnaBW6fnp"></div>
<div  class="g-post" data-href="https://plus.google.com/+google/posts/iq65sndanF4"></div>
<p><b>Read this: </b>Replace the data-href tag content with the link of your post(s). Duplicate, delete, and create posts at will. You can remove this text and the button that follows it. If you are viewing this as code, you should remember that you do not need to give credits. You should acknowledge that you have to manually update posts, and you can sort through your posts and display the ones you want.</p>
</div>
</body>

是的,就是这样。

© www.soinside.com 2019 - 2024. All rights reserved.