简体   繁体   中英

Can we get Subscription id from Payment ID in Facebook Graph API?

I want to know how to get the Subscription ID from Payment ID.
(I know how to cancel subscription by subscription id link )

When I created the subscription payment with test-account, I forgot to save the subscription id.

Now Facebook notify me about the subscription payment, but I can't cancel it.

Please help!!

Thank you in advance!!!

I just got the answer from Facebook Team :)

First, I get the subscriptions of user by:

https://graph.facebook.com/{{user_id}}/payment.subscription?accesstoken={{apptoken}}

Then, I cancel subscription by:

https://graph.facebook.com/{{payment.subscriptions_id}}?status=canceled&accesstoken={{apptoken}}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM