pythonfacebook-graph-apifacebook-sdk-3.0

How to retrieve all users data associated with my Facebook Application via Python code?


I created an application on Facebook for my research project. I, therefore, submitted some fields that I wanted to collect from the users that are going to associate with my app (e.g., user_likes, user_posts). When they associate with my app, how can I retrieve their information using the Facebook-SDK for Python? Is there a way to get a list of associated users of my Facebook App?

I have seen that I can get from the Graph API Explorer all the Test Users of my app using this command:

(<<APP-ID>>?fields=accounts)

If I turn my app available publicly, this field "accounts" will return all the real users associated with?


Solution

  • Is there a way to get a list of associated users of my Facebook App?

    No, you would have to store all users in your own database. There is no API to get all authorized users.

    /me/accounts returns all Pages the user manages.

    Very old, but still valid: How to get all the user IDs of people who are using your Facebook application