UPDATE: To answer the API Error Code: 191. The redirect_uri should be equal ( or relative) to the Site URL. enter image description here.
Lee mas