简体   繁体   English

获取在Facebook上分享帖子的所有人的姓名

[英]Get all names of people who shared a post on Facebook

I want to get basic information (names, ids) about users who shared a post. 我想获得有关共享帖子的用户的基本信息(姓名,ID)。 Now I have: 我现在有:

import facepy

long_access_token = "Access-token"

graph = facepy.GraphAPI(long_access_token)
g = graph.get('10153256675935268/sharedposts')

print len(g['data']) # outputs 10

for share in g['data']:
    print share['from']['name']

The problem, and I don't understand why, is that it gives information only about 10 people (when there are 276 shares for the post ). 这个问题,我不明白为什么,它只提供了10个人的信息(当这个帖子有276个股票时)。

I tried to increase limit up to 200 ('10153256675935268/sharedposts?limit=200') it increased number of shares up to 45, but never it went to 276. 我试图将限制增加到200('10153256675935268 / sharedposts?limit = 200')它增加的股票数量达到45,但从未达到276。

How I can get information about all people who shared a post? 我怎样才能获得所有分享帖子的人的信息?

That's because some people didn't share this post publicly . 那是因为有些人没有公开分享这篇文章。 If you don't befriend these sharers, you won't be able to get any information about their posts. 如果您不与这些分享者成为朋友,您将无法获得有关其帖子的任何信息。


You can see that it is the same on facebook.com/10153256675935268 . 你可以在facebook.com/10153256675935268上看到它是一样的。 By clicking "shares", just around 45 shares are displayed. 通过单击“共享”,只显示约45股。 By the way, it is said below the shared posts list: 顺便说一句,在共享帖子列表下面说:

Some posts may not appear here because of their privacy settings. 由于其隐私设置,某些帖子可能不会显示在此处。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 facebook 搜索一个城市内所有有共同兴趣的人 - facebook search all people who share an interest within a city Python-Facebook API:如何使用Python Facebook API获取所有喜欢我最近在facebook上发帖的人的profile_ids? - Python-Facebook API: How do I get the profile_ids of all the people who have liked my recent posts on facebook using Python Facebook API? 谁从使用Facebook API的帖子组中获得评论 - Who get comments from post group with Facebook API 如何在Python中使用facebook SDK获取facebook帖子的所有评论? - How to get all comments of a facebook post using facebook SDK in Python? 如何修复此 python 代码以获取我在代码中引用的表中的所有人员姓名? - How can I fix this python code to get all of the names of the people in the table I am referencing in the code? 无法从Facebook获取带有硒的所有名称-Python 3 - Can't get all names with selenium from Facebook - Python 3 如何获取对 discord.py 中的反应做出反应的人的 id - how to get id of people who reacted to a reaction in discord.py 如何从外部文本文件中对得分最高的人进行排序,并且获得这些分数的人的姓名仍然相关? Python - How to sort the top scores from an external text file with the names of the people who achieved those scores still linked? Python 使用 Python 和 Selenium 在 Instagram 上抓取喜欢帖子的帐户的名称,但只返回了 11 个名称 - Scraping the names of the accounts who liked a post on Instagram, using Python and Selenium, but only 11 names returned python 正则表达式用于人名 - python regex for people names
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM