Вопрос

Now, in the Facebook document of user info, it appears is_eligible_promo is only visible for the apps, of which the user is the administrator. But according to the Payer Promotions document, the app need to get the is_eligible_promo status before prompt the Payer Promotions Dialog. Now after the API change, how do we detect whether a player is eligible for payer promotion?

Это было полезно?

Решение

as stated in https://developers.facebook.com/docs/concepts/payerpromotions/ you can get it by sending get request to: https://graph.facebook.com/USER_ID?fields=is_eligible_promo&access_token=USER_ACCESS_TOKEN you'll have is_eligible_promo field in response json IF the user is eligible, if not, you'll only get user id.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top