使用Graph API通过id / url将现有的帖子分享到Facebook应用程序 [英] Share existing post to Facebook app by id/url using Graph API

查看:148
本文介绍了使用Graph API通过id / url将现有的帖子分享到Facebook应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以在我的应用程序中,我从预定义的页面显示一些Facebook帖子。我从我的服务器(服务器从Facebook直接获取他们)的帖子,这样我避免使用Facebook SDK。



对于每篇文章,我同时拥有id和URL,每当用户按下一个帖子,我在该帖子上打开Facebook应用程序。



现在,我想添加用户在他们的个人资料页面上分享这些帖子的可能性,但是当用户打开一个帖子(在Facebook应用程序中)时,它不会出现任何选项分享(只有喜欢和评论)。其他选择是使用标准的Android共享功能(ACTION_SEND),但是每当我以这种方式共享一个帖子的URL时,应用程序只会分享该帖子的图片,而不是实际的帖子。



/ p>

解决方案

p>目前还没有办法使用图形API模仿facebook.com网站上存在的分享行为。最接近的是使用 link 字段


So in my app I display some Facebook posts from a predefined page. I get the posts from my server (the server gets them from Facebook directly) and this way I avoid using the Facebook SDK.

For each post, I have both the id and the URL and whenever a user presses on a post I open the Facebook app on that given post.

Now I'd like to add the possibility for users to share these posts to their profile pages, but when a user opens a post (on the Facebook app) it doesn't appear any option to share it (only like and comment). Other option would be to use the standard android sharing feature (ACTION_SEND), but whenever I share a post's URL this way the app only shares a picture from that post, not the actual post.

Any help would be much appreciated,

Regards

解决方案

There is currently no way to mimic the "share" behavior that exists on the facebook.com website using graph API. The closest thing would be to use the link field that you mentioned.

这篇关于使用Graph API通过id / url将现有的帖子分享到Facebook应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆