Share existing post to Facebook app by id/url using Graph API

南楼画角 提交于 2020-01-01 20:48:46

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/30155366/share-existing-post-to-facebook-app-by-id-url-using-graph-api

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