Search code examples
androidsdkweibosinaweibo

Weibo redirect_uri_mismatch


I'm having trouble setting up sina weibo for a chinese app. Since I don't understand chinese I'm using google translate, and I'm sure I didn't set something properly and I get a redirect_uri_mismatch.

My redirect uri is public static final String REDIRECT_URL = "http://qhtv.argon.com/download";

And this is how I init the weibo sdk:

mWeibo = Weibo.getInstance(ConstantS.APP_KEY, ConstantS.REDIRECT_URL, ConstantS.SCOPE);
                           mWeibo.anthorize(mContext, new AuthDialogListener());
                           ininWeiboSDK();
                           regWeibo();

Solution

  • Ok so it wasn't anything from the code, just needed to set the callback uri properly on the website accesing this link: http://open.weibo.com/apps/[id]/info/advanced. Google translate didn't help me much