我使用api版本2.7調用facebook定位句子行,並根據環境獲取不同的結果。在舞臺和發展,我得到:Facebook API定位句子返回中文
{
"targetingsentencelines": [
{
"content": "Location - Living In:",
"children": [
"United States: Decatur (+10 mi) Georgia"
]
},
{
"content": "Age:",
"children": [
"18 - 65+"
]
},
{
"content": "Placements:",
"children": [
"News Feed on mobile devices, News Feed on desktop computers or Right column on desktop computers"
]
}
]
}
然而,在preprod我得到:
{
"targetingsentencelines": [
{
"content": "Location - Living In:",
"children": [
"United States: Decatur (+10 mi) Georgia 喬治亞州"
]
},
{
"content": "Age:",
"children": [
"18 - 65+"
]
},
{
"content": "Placements:",
"children": [
"News Feed on mobile devices, News Feed on desktop computers or Right column on desktop computers"
]
}
]
}
使用圖形瀏覽器API V2.7(https://developers.facebook.com/tools/explorer/)和一個URI:
act_FACEBOOK標識符/ targetingsentencelines targeting_spec = {%22geo_locations%22:{%22cities%22:[{%22key%22:%222431637%22%22radius%22:%2210%22%22distance_unit%22:%22英里%22}]} ,%22age_min%22:%2218%22%22device_platforms%22:[%22mobile%22%22desktop%22],%22publisher_platforms%22:[%22facebook%22],%22facebo ok_positions%22:[%22feed%22,%22right_hand_column%22]}
我得到了與分段和開發相同的結果。
試圖在請求中添加locale = en_US並且沒有改變它。 – JEMaddux