我正在使用这个很棒的库进行oauth身份验证:
https://oauth.io/docs/mobiles
通过这段代码(在路由器函数中编写):
OAuth.initialize('FUxf14**YBrE');
//Using popup (option 1)
OAuth.popup('instagram', function(error, result) {
//handle error with error
//use result.access_token in your API request
console.log(error);
});
这段代码应该打开一个弹出窗口,但是 console.log(error) 告诉我:
message: "Could not open a popup"
为什么无法打开弹窗?