2

I'm trying to update my adset's targeting location to include 2 zip codes 85233 and 85224 but facebook keeps returning an Unknown error.

My request is

https://graph.facebook.com/v2.11/[ADSET_ID]
targeting={ "geo_locations":{"zips":[{"key":"US:85233"},{"key":"US:85224"}]}}
access_token=[ACCESS_TOKEN]

Response:

{
     "error": {
      "message": "An unknown error has occurred.",
      "type": "OAuthException",
      "code": 1,
      "fbtrace_id": "EA9s0p59E9h"
     }
    }

Please let me know the correct way to do this?

UPDATE: I have tried to update adset geolocation by lat and lng but the same error happened.

{  
   "geo_locations":{  
      "custom_locations":[  
         {  
            "radius":30,
            "latitude":30.1519297,
            "longitude":-97.8338758
         }
      ]
   }
}
Thuan Nguyen
  • 41
  • 1
  • 4

1 Answers1

0

Can you try to use "/v2.4/" and check whether it returns a proper response? Because it seems like a FB API bug. Check this: https://developers.facebook.com/bugs/486654544831076/

Andrii Pryimak
  • 797
  • 2
  • 10
  • 33