我们可以用facebook进行带外认证(oob),我们指定redirect_uri为 urn:ietf:wg:oauth:2.0:oob
吗?
谷歌明确提到它是其中一个选择:
https://developers.google.com/identity/protocols/OAuth2InstalledApp#formingtheurl
我正在尝试用facebook和基本上使用R studio(用于在远程服务器上运行脚本) .
我总是收到一个错误:
The redirect_uri URL is not supported
当我指向网址时:
获取身份验证代码 .
我该如何解决?
注意:我正在使用包 httr
,这里是我的2身份验证代码:
app <- oauth_app('facebook', 'ID', 'SECRET')
Sys.setenv("HTTR_SERVER_PORT" = "1410/")
tkn <- oauth2.0_token(
oauth_endpoints('facebook'),
app,
scope = 'ads_management',
type = 'application/x-www-form-urlencoded',
use_oob = TRUE,
cache = FALSE)