0

I am calling Facebook Ads APIs. I need permanent Facebook USER access token. I have generated a Long lived User Access token already, but it expires after 60 days. I tried the other articles from Stack overflow, but they all talk about permanent PAGE access token

Can someone tell if it is possible to get Facebook permanent USER access token? If yes, then mention the API that does that task.

  • 1
    There is no permanent token for normal user accounts. See if you can maybe use a _system user_ for your purposes. https://developers.facebook.com/docs/marketing-api/system-users – CBroe Aug 24 '21 at 11:25

1 Answers1

1

There is no way by which we can make the expiry date of normal User Access token permanent In order to do so, we have to create a system user for the app and generate access token for it. Access token for system users is permanent.

A Normal User Access token has expiry of 60 days as shown below. enter image description here Whereas a System user access token has no expiry date. enter image description here

What is a system user?

System users represent servers or software making API calls to assets owned or managed by a Business Manager.

Webpage for reference: Link1

How to add a system user?

Webpage for reference: Link2

This solution worked for me.

  • Hey @Priyanshu Tiwari, I had managed to setup the system user, but I didn't find the way to use it for different business accounts :/ With user access token I've added that user to many business accounts and I was able to read data from API, but I do not see any option to assign/share that user with other businesses. – eldi Oct 21 '21 at 08:57
  • Ok, resolved! :) - I've added the main business account with system user as a partner, also shared the ad accounts with the partner - then in main business account updated the system user with access to that ad accounts – eldi Oct 21 '21 at 09:08