You must specify a valid JavaScript API Domain as part of this key's configuration. in LinkedIn

前端 未结 4 985
囚心锁ツ
囚心锁ツ 2020-12-11 16:58

I try to create a MVC4 application with LinkedIn share option with callback option.

i refer my script in my Layout.cshtml with my app id.

  

        
相关标签:
4条回答
  • 2020-12-11 17:31

    Your API key looks a bit short...

    Did you just register your API key? According to Eugene O'Neill on this forum:

    After registering an API key and specifying a valid domain, it may take up to 30 minutes for the changes to take affect, so if it doesn't work immediately, go grab a coffee and check back in a few.

    Also, make sure you specified your API Domain.

    He outlines the full series of steps as follows:

    To register an API key:

    head over to https://www.linkedin.com/secure/developer

    log in and click the link to Add New Application

    fill out the following info:

    • Company (choose from the dropdown)

    • Application Name (e.g. My Company Jobs)

    • Description (e.g. For receiving applications from job applicants)

    • JavaScript API Domain (this is an important step. this is the website the button will go on e.g. http://www.mycompany.com)

    • Application Use (select one from the list, if nothing matches your needs, choose "other")

    • Developer Contact Email (your email address)

    • Phone (a phone number you can be reached at if there are issues with the account)

    check "I agree" Security text (enter the characters you see just above it)

    0 讨论(0)
  • 2020-12-11 17:41

    To add up to Paul Nowak correct answer that helped to solve my issue.

    Don't forget to set correct url here, too.

    Menu option

    And URL here

    0 讨论(0)
  • 2020-12-11 17:48

    In this form:

    JavaScript Settings

    You have to enter your domain, click Add, and confirm by clicking Update button.

    I didn't do that for the first time. And even though my domains appeared in the screen, they weren't submitted.

    I run into this problem as well.

    I was debugging the problem for an hour when I realized that LinkedIn doesn't save my "Valid SDK Domain" in the first place.

    0 讨论(0)
  • 2020-12-11 17:52

    Remove the quotes around apikey. That is the problem.

    0 讨论(0)
提交回复
热议问题