How to generate a long life token for posting information on facebook

Asked

Viewed 928 times

0

I’m trying to generate a token for posting information on facebook on my page with php the script even makes the post but the token I can get has only one hour to live.

How do I create a token that has indefinite time or automatically reset the token? I’m using the https://developers.facebook.com/tools/debug/accesstoken/ facebook

but I can’t generate any token with more than 1 hour.

  • You can renew the token when the token expires. Long ago offline_access, but that was removed.

1 answer

1


  • there is some way for me to generate short tbm by php ? so my script would be auto enough I wouldn’t need to enter fb all the time to do this

  • Facebook authentication endpoints are language dependent, you can implement in PHP or any other language. You can work in PHP using a short lived token and always renew it when it expires, or get a long lived, all this by your PHP code.

  • Thank you very nice. I will research more on.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.