S Renzler S Renzler - 5 months ago 391
Javascript Question

linkedin Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration

I have followed the instructions listed here in the 10 minute instructions: guide
And the help from stackoverflow listed here: stackanswer

I still get this error:

Console.log error:


Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration.


My Code is this:



<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key:'98eeeu4fd587w4'
</script>





Where the api_key value is the value of Consumer Key / API Key from my app.
And for the JavaScript API Domains I listed: http://mediaproof360.com,http://www.mediaproof360.com

After a day of research and trial and error I am hitting a wall.

Help is appreciated greatly. I have created a second app with credentials using that new API but still no luck.

Answer

You can try this code

<script type="text/javascript" src="//platform.linkedin.com/in.js">
    api_key: 98eeeu4fd587w4
</script>

No quotes with api key will work. Add this section in the <head> element.