Do you know whether there's an API to query my subscribers and/or subscriptions?
It's undocumented, but it seems to be /userId/subscribers. And you would need user_subscriptions
extended permissions as shown below. In fact, using the Graph API explorer is how I learned subscriptions were in fact available. I haven't found the subscriptions method yet, as /me/subscriptions is invalid as that is for applications and real-time update subscriptions.
Update: still undocumented, but it seems to be /userId/subscribers and /userId/subscribees
Get subscriptions from the subscriptions
table with FQL:
SELECT subscribed_id FROM subscription WHERE subscriber_id = me()
Use FQL multiquery to get the subscription names as well:
query1: SELECT subscribed_id FROM subscription WHERE subscriber_id = me()
query2: SELECT name, uid FROM user WHERE uid IN (SELECT subscribed_id FROM #query1)
You need the user_subscriptions
permission for this query.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With