Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
436 views
in Technique[技术] by (71.8m points)

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...