• 0

Acess token doesn't generate


Hello! It is my first time working with Mercado Libre's API. I have read all the documents and seen some videos. I'm using PHP SDK from Mercado Libre.

The problem is that in Linux, access token doesn't generate and the page is cut. On the other hand, in Windows the access token does generate and everything is fine. What's the problem?

i can't get it. without access token, i won't be able to work u.u

Captura de pantalla de 2018-08-10 11:58:58.png

Share this post

Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

hi!, the access token isn't generated on your own environment. so there is no difference between windows and linux.

Probably there is something else. You can check a lot of things. Meaby your apache has a misconfiguration, or some module on PHP isnt installed, or you have files with/without uppercase and linux cant find the file...

Well, it could be a lot of things.

if  you need more help, i work developing PHP apps. we can talk about it.

Share this post

Link to post
Share on other sites
  • 0


We can help you if you show to us some of the code that you are using.

Please read carefully the "example_login.php" from the php SDK.

First you need to obtain the token and refresh token manually, by logging with your php script, and you will get the token, so save it in your database.

Then you will need to make a cronjob to update it with the refresh token every 5 or 6 hours. Thats how it works, you will have the token in your database and you will be refreshing every certain time.

Read the example_login.php from the SDK.

Also I have an example in the spanish forums, search for it please.

Have an excellent day

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now