Hi FatSecret Support,
I’m trying to authenticate against the FatSecret OAuth endpoint but I consistently receive the following error:
{"error":"invalid_client"}Here are the details of my setup:
Grant type: client_credentials
Client ID / Client Secret: Using exactly as shown in my developer panel
Scopes tested:
basic (still fails)
premier (also fails)
No scope (fails as well, even though docs say it should default to available scopes)
Request format: Using the official documentation method:
curl -u <CLIENT_ID>:<CLIENT_SECRET> \ -d "grant_type=client_credentials&scope=basic" \ -X POST https://oauth.fatsecret.com/connect/tokenResponse: Always returns {"error":"invalid_client"}
IP setup: My server’s public IP is 156.244.46.22. I have whitelisted it in the panel using CIDR notation as 156.244.46.22/32.
Verification: I confirmed the IP using curl ifconfig.me on the same environment where I run the request.
Questions:
Is 156.244.46.22/32 the correct way to whitelist a single IP?
Is there any additional configuration required on my account to enable basic or premier scopes?
Are there cases where the -u client:secret syntax does not work, and instead credentials must be passed in the POST body?
Thanks in advance for your help!