Renewing Facebook Graph API token automatically?

 

Mã truy cập dài hạn

https://developers.facebook.com/docs/facebook-login/guides/access-tokens/get-long-lived/

https://community.n8n.io/t/renewing-facebook-graph-api-token-automatically/12867/2

Hi @tomato_planet, I am not aware of a way to automate the renewal of your personal token I am afraid.

However, in many cases this shouldn’t be required. Are you using your token to post on a FB page by any chance? If so, you can first send a request to me/accounts like so:

💡 Double-click a node to see its settings, or paste  into n8n to import it

This returns a page-specific token for each page I have access to for me:

This page-specific token does not expire as per Facebook’s token debugger:

Using this new token you should then be able to interact with your page for an extended period of time via the API.

Không có nhận xét nào:

‘Connection lost’ / ‘Invalid origin!’ Error with n8n >= 1.87.0 behind Cloudflare Tunnel

 https://community.n8n.io/t/solved-connection-lost-invalid-origin-error-with-n8n-1-87-0-behind-cloudflare-tunnel/99913/1 The Solution:  The ...