# Joomla API Callback is not valid.

**URL:** <https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043>\
**Category:** Product Support\
**Created:** [July 11, 2015, 10:15am UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043 "2015-07-11T10:15:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![timram](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@timram](https://forum.mautic.org/u/timram)\
**Post date:** [July 11, 2015, 10:15am UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/1 "2015-07-11T10:15:01Z")

</div>

Hi I’m trying to configure the Joomla Plugin API.  
  
I have selected OAuth 1.a on the plugin and have set OAuth to 1 in mautic.  
  
When I try to authorize the API it redirects me to my mautic loginpage, after logging in I get this message;  
  
Callback is not valid.  
  
  
  
I have tried debugging and these are the settings that were recorded,  
  
Settings used for OAuth  
  
  
  
array (  
  
‘baseUrl’ =\> ‘[https://xtatic.com.au/mautic](https://xtatic.com.au/mautic)’,  
  
‘version’ =\> ‘OAuth1a’,  
  
‘clientKey’ =\> ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,  
  
‘clientSecret’ =\> ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,  
  
‘callback’ =\> ‘[http://globaldivingacademy.com/administrator](http://globaldivingacademy.com/administrator)’,  
  
)  
  
  
  
I’m not sure what I’m doing wrong, but I’ve been trying for hours, If anybody can help it would be greatly appreciated,  
  
Thanks in advance,  
  
Tim

---

<div class="post-metadata">

**Author:** ![timram](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@timram](https://forum.mautic.org/u/timram)\
**Post date:** [July 11, 2015, 10:15am UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/2 "2015-07-11T10:15:01Z")

</div>

Hi I’m trying to configure the Joomla Plugin API.  
I have selected OAuth 1.a on the plugin and have set OAuth to 1 in mautic.  
When I try to authorize the API it redirects me to my mautic loginpage, after logging in I get this message;  
Callback is not valid.

I have tried debugging and these are the settings that were recorded,  
Settings used for OAuth

array (  
‘baseUrl’ =\> ‘[https://xtatic.com.au/mautic](https://xtatic.com.au/mautic)’,  
‘version’ =\> ‘OAuth1a’,  
‘clientKey’ =\> ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,  
‘clientSecret’ =\> ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,  
‘callback’ =\> ‘[http://globaldivingacademy.com/administrator](http://globaldivingacademy.com/administrator)’,  
)

I’m not sure what I’m doing wrong, but I’ve been trying for hours, If anybody can help it would be greatly appreciated,  
Thanks in advance,  
Tim

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [July 11, 2015, 2:52pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/3 "2015-07-11T14:52:58Z")

</div>

Hi, the callback URL must be exactly the same in Mautic API credential configuration and what Joomla plugin sends in the request.

I have prepared a new version of the plugin which doesn’t use the /administrator, but the Joomla frontend URL. More described here:

[https://github.com/mautic/mautic-joomla/issues/15](https://github.com/mautic/mautic-joomla/issues/15)

If you want to test it, that’d be great. I’d submit that version to main Mautic-Joomla plugin repository.

---

<div class="post-metadata">

**Author:** ![timram](https://avatars.discourse-cdn.com/v4/letter/t/ccd318/32.png) [@timram](https://forum.mautic.org/u/timram)\
**Post date:** [July 11, 2015, 7:12pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/4 "2015-07-11T19:12:28Z")

</div>

Hi I’ve put the new plugin in and changed the callback uri to the front end,  
I’m getting an incorrect access token parranaters returned:Array message on the front end and this is the log;  
Recent Log (/home2/tgrkarat/public\_html/globaldivingacademy/logs/plg\_mautic.php)

2015-07-11T20:06:16+00:00 ERROR 49.197.45.187 plg\_mautic Incorrect access token parameters returned: Array  
2015-07-11T20:06:14+00:00 INFO 49.197.45.187 plg\_mautic Authorize method called.  
2015-07-11T20:05:04+00:00 ERROR 49.197.45.187 plg\_mautic Incorrect access token parameters returned: Array  
2015-07-11T20:05:04+00:00 INFO 49.197.45.187 plg\_mautic Authorize method called.  
2015-07-11T20:02:32+00:00 ERROR 49.197.45.187 plg\_mautic Incorrect access token parameters returned: Array  
2015-07-11T20:02:31+00:00 INFO 49.197.45.187 plg\_mautic Authorize method called.  
2015-07-11T20:00:13+00:00 ERROR 49.197.45.187 plg\_mautic Incorrect access token parameters returned: Array  
2015-07-11T20:00:12+00:00 INFO 49.197.45.187 plg\_mautic Authorize method called.  
2015-07-11T19:55:39+00:00 ERROR 49.197.45.187 plg\_mautic Incorrect access token parameters returned: Array  
2015-07-11T19:55:39+00:00 INFO 49.197.45.187 plg\_mautic Authorize method called.  
2015-07-11T19:52:34+00:00 ERROR 49.197.45.187 plg\_mautic onUserAfterSave::leadApi::create - response: 0: token\_rejected  
)  
‘email’ =\> ‘kal@kalkal.com’,  
‘lastname’ =\> ‘’,  
‘firstname’ =\> ‘kal’,  
‘ipAddress’ =\> ‘49.197.45.187’,  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave::mauticUser: array (  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave: Send the user to Mautic.  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave::send\_registered: ‘1’  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave::success: true  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave::isNew: true  
2015-07-11T19:52:33+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave method called.  
2015-07-11T19:47:31+00:00 ERROR 49.197.45.187 plg\_mautic onUserAfterSave::leadApi::create - response: 0: parameter\_absent  
)  
‘email’ =\> ‘capt@america.com’,  
‘lastname’ =\> ‘’,  
‘firstname’ =\> ‘capt’,  
‘ipAddress’ =\> ‘49.197.45.187’,  
2015-07-11T19:47:30+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave::mauticUser: array (  
2015-07-11T19:47:30+00:00 INFO 49.197.45.187 plg\_mautic onUserAfterSave: Send the user to Mautic.  
Settings used for OAuth

array (  
‘baseUrl’ =\> ‘[https://xtatic.com.au/mautic](https://xtatic.com.au/mautic)’,  
‘version’ =\> ‘OAuth1a’,  
‘clientKey’ =\> ‘3qii4fpopum8cks00ko44wosg0444w4wkg4sggocwwo440c04w’,  
‘clientSecret’ =\> ‘48jlz5t5m3qcckgkoc48c08w8os8kc4c0sk4ks0sk4swkws8cg’,  
‘callback’ =\> ‘[http://globaldivingacademy.com/](http://globaldivingacademy.com/)’,  
)

not sure what’s going on,  
Thanks  
Tim

---

<div class="post-metadata">

**Author:** ![DerekBuntin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derekbuntin/32/90_2.png) [@DerekBuntin](https://forum.mautic.org/u/DerekBuntin)\
**Post date:** [July 12, 2016, 10:41am UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/5 "2016-07-12T10:41:03Z")

</div>

It doesn’t work for me either, it also says callback not valid.

---

<div class="post-metadata">

**Author:** ![leolopesbraga](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@leolopesbraga](https://forum.mautic.org/u/leolopesbraga)\
**Post date:** [July 12, 2016, 1:37pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/6 "2016-07-12T13:37:12Z")

</div>

> [@13169:@DerekBuntin](#):
>
> It doesn’t work for me either, it also says callback not valid.

For me only working selection OAuth2 and cleaning the cache!

---

<div class="post-metadata">

**Author:** ![DerekBuntin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derekbuntin/32/90_2.png) [@DerekBuntin](https://forum.mautic.org/u/DerekBuntin)\
**Post date:** [July 12, 2016, 7:21pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/7 "2016-07-12T19:21:24Z")

</div>

@leolopesbraga tried that and I get a 404, revert back and still get callback not valid ☹

---

<div class="post-metadata">

**Author:** ![DerekBuntin](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/derekbuntin/32/90_2.png) [@DerekBuntin](https://forum.mautic.org/u/DerekBuntin)\
**Post date:** [July 12, 2016, 7:28pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/8 "2016-07-12T19:28:39Z")

</div>

@leolopesbraga Actually I just deleted the old credentials and recreated new ones using the OAuth2 and it did work fine this time, thanks for the heads up 🙂

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/joomla-api-callback-is-not-valid/2043/9 "2020-02-02T22:59:26Z")

</div>


