[英]get likes and comments of facebook post after sharing it
User sharing contents in facebook like this, 用户像这样在Facebook中共享内容,
https://www.facebook.com/sharer/sharer.php?u=https://myexample.com
After share complete, i want to fetch all comments and likes of that post. 共享完成后,我想获取该帖子的所有评论和喜欢的内容。
Is it returning post_id
? 返回
post_id
吗? so may be we can fetch comments using post id by graph api? 那么我们可以通过图谱api使用帖子ID获取评论吗?
How should i do that in php? 我应该如何在php中做到这一点?
The sharer.php does not return anything. sharer.php不返回任何内容。 You can only use the Share Dialog if you want to get a Post ID, but:
如果要获取帖子ID,则只能使用“共享对话框”,但是:
Only available if the user is logged into your app using Facebook and has granted
publish_actions
.仅当用户使用Facebook登录到您的应用程序并已授予
publish_actions
。
Source: https://developers.facebook.com/docs/sharing/reference/share-dialog#response 来源: https : //developers.facebook.com/docs/sharing/reference/share-dialog#response
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.