When I start using an app on Facebook, the app shows “10K people using this app”, but before to do that I need to “subscribe” to that app (click a button telling me that I’m going to be using that app) How do I do that with my own app, so I can keep track of the amount of users using it?
Besides, when someone starts using my app (an online magazine) I want to update their activity with something like “John Doe is Reading < Name of the App >”
What elements of the Facebook API do I need to achieve such behaviors?
The “number of people using this app” statistic is added by Facebook automatically to the app authentication dialog. If you want to show it in your app (manually), you can make a call to
/{your_app_id}and use theweekly_active_usersormonthly_active_userscount.As for the activity, Facebook automatically posts “User is using App”. You won’t be able to do “User is reading app” as the page needs to be a object-type that accepts ‘read’. ‘Read’ would only work if you are reading a blog, article, etc.
If you are interested in pursuing it anyway, you need the
publish_actionspermission and you need to register thereadaction in the App Settings. The facebook documentation has everything you need to get started.