检测Facebook API用户币种的新方法 [英] New way to detect Facebook API user currency
本文介绍了检测Facebook API用户币种的新方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Since currency field is deprecated form January 08, 2019, you can find user_currency in payment_mobile_pricepoints object.
别忘了将Payment_mobile_pricepoints添加到请求的字段列表中
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'];
});
希望对别人有帮助
推荐答案
Since currency field is deprecated form January 08, 2019, you can find user_currency in payment_mobile_pricepoints object.
别忘了将Payment_mobile_pricepoints添加到请求的字段列表中
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'];
});
希望对别人有帮助
这篇关于检测Facebook API用户币种的新方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文