以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]详情授权问题  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=106857)

--  作者:18523982317
--  发布时间:2017/9/16 19:26:00
--  [求助]详情授权问题
公众号详情授权,有个几个问题搞不懂,按照狐爸提供的详情授权代码,提示说scope参数错误或者没有权限
1、我已经备案了我的域名
2、我在公众号里添加了www.我的域名.com,并且提交成功
3、详情授权代码里的这段:
 UserName = e.Cookies("username"\'cookie获取用户名和openid
        OpenID = e.Cookies("openid")
        If userName = "" OrElse OpenID = "" Then
            Dim ul As String  = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8acdb7df5beb68fd&redirect_uri=http%3a%2f%2fwexin.foxtable.com&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"
            sb.Append("<meta http-equiv=\'Refresh\' c>"\'
跳转到授权链接
            e.WriteString(sb.ToString)
            Return
        End If
我想问这段redirect_uri= 这个地址到底是什么地址?比如我访问 www.我的域名.com/1.htm,是不是用CExp把www.我的域名.com/1.htm合成到redirect_uri=里面去??
4、详情授权里面有个跳转网页,上面写的网页由XXX开发,要获取用户的xxx信息,下面一个按钮确认登录,这个网页是自己做的,还是说通过下面的代码跳转过去的,自动有的?
Dim ul As String  = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8acdb7df5beb68fd&redirect_uri=http%3a%2f%2fwexin.foxtable.com&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"

5、还有个问题没搞明白,我在服务号后台编辑了一个图文消息,怎么获取media_id????
   我在后台没看到什么图文消息有id啊?


求大神解答一下


--  作者:18523982317
--  发布时间:2017/9/16 20:07:00
--  
1、我看了开发文档,那个跳转的授权页面好像是自带的,snsapi_userinfo里面的
2、我把我的域名用urlEncode转码了也不起作用,不知道问题处在那里了。。。。

--  作者:18523982317
--  发布时间:2017/9/17 12:35:00
--  
人呢
--  作者:有点甜
--  发布时间:2017/9/17 13:41:00
--  

用下面的代码生成地址,红色的替换成自己的,最后拷贝地址出来。

 

你可参考下面的代码生成授权URL:

Dim ul1 As String = "https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope=snsapi_base&state={2}#wechat_redirect"
Dim ul2 As String = UrlEncode("http://wexin.foxtable.com")
ul1 = CExp(ul1,"wx8acdb7df5beb68fd",ul2,"123")
Output.Show(ul1)


--  作者:有点甜
--  发布时间:2017/9/17 13:41:00
--  

5、http://www.foxtable.com/mobilehelp/scr/0208.htm