现在有这养一个需求
网站会员关注我企业的新浪微博 就给用户加积分这个要怎么实现
没有思路 有什么接口或者回调函数的吗?
还有百度分享按钮 分享了 也给用户加积分 求指导新浪微博百度

解决方案 »

  1.   

    你是用的js吗
    ?Script:
    WB2.anyWhere(function(W){
        W.widget.followButton({
            'id': "wb_follow_btn" //关注按钮容器ID
            'nick_name': '姚晨' //用户昵称
        });
        //从这里开始可以加上你自己的代码啊。
    });http://open.weibo.com/wiki/Weibo-JS_V2#WB2.anyWhere.28callback.29
      

  2.   

    <iframe width="117" height="22" frameborder="0" scrolling="no" src="http://widget.weibo.com/relationship/followbutton.php?language=zh_cn&width=136&height=24&uid=2620171527&style=2&btn=red&dpc=1&t=1347966129316"></iframe>
    我的是这种方式 跟你说的不一样
      

  3.   

    <html xmlns:wb=“http://open.weibo.com/wb”>
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script><div id="wb_follow_btn" >
    <wb:follow-button uid="2991975565" type="red_1" width="67" height="24" ></wb:follow-button>
    </div> 
    <script>
    WB2.anyWhere(function(W){ 
        W.widget.followButton({ 
            'nick_name': '姚晨',  //用户昵称 
            'id': "wb_follow_btn", 
            'show_head' : true, //是否显示头像 
            'show_name' : true, //是否显示名称 
            'show_cancel': true, //是否显示取消关注按钮 
         'callback' :'test'
        }); 
    }); 
    function test(data){
    alert(data);
    }
    </script>
    </html> 这种方式 js 有问题吗  关注按钮显示不出来 一直loading 请问是怎么回事 callback 会被执行 吗