Since currency field is deprecated form January 08, 2019, you can find user_currency in payment_mobile_pricepoints object.
Don't forget to add payment_mobile_pricepoints into requested fields list
FB.api("/me", {fields:"payment_mobile_pricepoints"}, function(result){
var currencyCode = result['payment_mobile_pricepoints']['user_currency'];
});
Hope it helps to somebody
Since currency field is deprecated form January 08, 2019, you can find user_currency in payment_mobile_pricepoints object.
Don't forget to add payment_mobile_pricepoints into requested fields list
FB.api("/me", {fields:"payment_mobile_pricepoints"}, function(result){
var currencyCode = result['payment_mobile_pricepoints']['user_currency'];
});
Hope it helps to somebody
来源:https://stackoverflow.com/questions/54126920/new-way-to-detect-facebook-api-user-currency