Getting error on server container facebook pageview tag

Hello

Using wordpress and the stape wordpress plugin. I setup gtm server side and web side tags. On the web side looks ok and I have also deduplication with unique event id. I have the same event id for the view_item_stape on server and for the web tag.

I allways get 400 error on the server side for facebook pageview tag.
I replaced the token with no result. I used facebook token debugger and it is ok.
I disabled cloudflare but it had no efect.

i removed the id … *****************

request url POST
https://graph.facebook.com/v20.0/*****************/events?access_token=*****************

request body
{“data”:[{“event_name”:“PageView”,“action_source”:“website”,“event_time”:1722235622,“custom_data”:{},“user_data”:{“client_user_agent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36”,“client_ip_address”:“my ip”,“fbp”:“fb.2.1722235427493.2135256069”},“event_source_url”:“https://…com/shop/…/”,“event_id”:“1722236111296_17222364080158”}],“partner_agent”:“stape-gtmss-2.1.1-ee”}

Www-Authenticate
OAuth “Facebook Platform” “invalid_request” “Unsupported post request. Object with ID ‘*****************’ does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at API Graph - Documentation - Meta for Developers

{“error”:{“message”:“Unsupported post request. Object with ID ‘*****************’ does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api”,“type”:“GraphMethodException”,“code”:100,“error_subcode”:33,“fbtrace_id”:“ANDLhEyTi3aUjcuMxQFKYYK”}}


Make sure you are using the correct pixel id and also try to issue a new access token, it might be the problem, it happens sometimes.

Thank you alex.
Yes I have tried this twice.

But will try again and inform here.

Also check that your tag template is updated to the latest version

Today after almost giving up, I created a new token and copied the pixel id again and now it works.

I have done this several times before and the problem persisted.
So I am not sure what was the cause.

Thnaks for the help.

1 Like

Hello,
I’m facing the same issue in sGTM while debugging the Facebook API tag (pageview + other events).

We have different Facebook accounts (in a portfolio) with 1 id per market, and share the same token (so multiple id and 1 token). 1 sGTM tag per event has been created providing dynamically the account id (based on the domain name).

By testing it, it works as a charm in a couple of accounts, but not on all:

www-authenticate: OAuth “Facebook Platform” “invalid_request” "Unsupported post request. Object with ID ‘2052667664994293’ does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at API Graph - Documentation - Meta for Developers

Id are correct (triple checked)
I regenerated the token through Meta (Event manager > Settings > Set up direct integration)
Facebook API tag is updated with the last version

Could it be possible that we don’t have enough permissions in some Meta accounts to send the Facebook request to the API? If so, where can we set up this? Normally all accounts have the same set up.

Thanks for you help.

Hello @Benoit

Try having account/pixel owner generate that token - if it ultimately works, your assumptions regarding permission level might be correct.

Hello @Dan
Thanks for replying.
I have full control permission on the business portfolio account. Seems to be not possible to see who is the owner (if there is one).
Something that could be interesting to share: I tested to generate the token from the Graph API Explorer, and it works on all the accounts this time (downside: the token is expired after 1 hour).
Thanks.

1 Like