我在winform中设置了一个Web浏览器控件并导航到以下url-
@H_301_38@https://www.facebook.com/dialog/oauth?client_id=xxxxxxxxxxxxx&redirect_uri=https://www.facebook.com/connect/login_success.html&display=popup&scope=publish_stream,user_status&response_type=token
它显示登录对话框.输入用户名和密码后facebook重定向到以下内容
URL-
https://www.facebook.com/login.PHP?skip_api_login=1&api_key=xxxxxxxx&signed_next=1&next=https://www.facebook.com/dialog/oauth?redirect_uri=https%253A%252F%252Fwww.facebook.com%252Fconnect%252Flogin_success.html&display=popup&scope=publish_stream%252Cuser_status&response_type=token&client_id=xxxxxxxxxx&ret=login&cancel_uri=https://www.facebook.com/connect/login_success.html?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied%23_=_&display=popup
并显示一条带有两个按钮的消息,名为“okay”& “取消”
xyourappxxxx would like to access your public profile,friend list and status updates.
如果我点击“Okay”按钮,这将重定向到以下页面,其中包含msg
page---https://www.facebook.com/dialog/oauth/read
message—Success SECURITY WARNING: Please treat the URL above as you
would your password and do not share it with anyone.application type: Native/desktop
App secret in client: no
Client OAuth Login: enbl
Embedded browser OAuth Login: enbl
SandBox mod: ON
问题是授权后Facebook没有重定向到我的redirect_uri而没有获得任何访问令牌.
我正在使用vb.net 2008 express
谢谢