Is it possible / how to get the number of certain Facebook group members (even if their number is 500 +)?

I need to track the number of facebook group users and display them on the website. I know that you can get user IDs using their APIs, but they are limited to only 500 (if the total number of participants is 500+).

What would be the easiest way to get the total number of members who subscribed to the Facebook group that I created? Is it possible?

+2
source share
3 answers

If you are writing an HTTP bot, it is not very difficult to cancel, given that real-time performance is not the key.

+3
source

You can do this with an FQL query, for example:

SELECT uid FROM group_member WHERE gid = <group_id> limit 500
SELECT uid FROM group_member WHERE gid = <group_id> limit 500 offset 500
SELECT uid FROM group_member WHERE gid = <group_id> limit 500 offset 1000
...

( 0 ),

    perPage = 500
    for count in range(100):
        res = fql('SELECT uid FROM group_member WHERE gid = %s limit %d offset %d' % (fbUserId, perPage, perPage * count))
        if len(res) == 0:
            break
        friends += len(res)

FQL, :

SELECT uid, name, pic_square FROM user WHERE uid IN ( 
         SELECT uid FROM group_member WHERE gid = <group_id> limit 500 offset %d )
+2

Groups.getMembers > 500 API. , , , 500 .

Facebook Connect . Connect, , , , Facebook, - , . , , .

.

0

Source: https://habr.com/ru/post/1783498/


All Articles