Authentication 如何在chrome扩展中集成登录和链接

Authentication 如何在chrome扩展中集成登录和链接,authentication,google-chrome-extension,oauth,oauth-2.0,linkedin-api,Authentication,Google Chrome Extension,Oauth,Oauth 2.0,Linkedin Api,有人知道如何将linked In登录方法与chrome扩展集成在一起吗 我正在尝试在我的chrome扩展中集成登录和链接,但不知道如何做到这一点。我试过这个代码,但它说: api_密钥:XXXXXXXXXXXX onLoad:onLinkedInLoad 授权:正确 函数onLinkedInLoad(){ IN.Event.on(在“auth”中,getProfileData); } 函数getProfileData(){ IN.API.Profile(“me”).result(ShowPr

有人知道如何将linked In登录方法与chrome扩展集成在一起吗

我正在尝试在我的chrome扩展中集成登录和链接,但不知道如何做到这一点。我试过这个代码,但它说:


api_密钥:XXXXXXXXXXXX
onLoad:onLinkedInLoad
授权:正确
函数onLinkedInLoad(){
IN.Event.on(在“auth”中,getProfileData);
}
函数getProfileData(){
IN.API.Profile(“me”).result(ShowProfileData);
}
函数ShowProfileData(配置文件){
var成员=profiles.values[0];
var id=member.id;
}

我相信您可能拼写错误了资源。我只是遇到了同样的问题,因为我试图调用文件oauth.js,但在我的目录中,我拼写为ouath.js。仔细检查所有拼写和用于查找文件的路径。

您需要提到html的位置。背景?内容?注入?@ZigMandel它是一个单独的html文件,注入形式为:“web\u可访问的\u资源”:[“oauth.html”]