Giter Site home page Giter Site logo

Comments (7)

hongtaozhy avatar hongtaozhy commented on July 24, 2024

邀请的好友UID可是互粉好友?

from weibo_ios_sdk.

modastic avatar modastic commented on July 24, 2024

UID 是从 friendships/friends/bilateral 接口得到的,所以是互粉好友

from weibo_ios_sdk.

modastic avatar modastic commented on July 24, 2024

用API接口 https://m.api.weibo.com/2/messages/invite.json 也是一样

返回的JSON:
{"error":"access_denied","error_code":21330,"request":"/2/messages/invite.json"

这个 error code 有没有更详细的解释?

from weibo_ios_sdk.

hongtaozhy avatar hongtaozhy commented on July 24, 2024

Scope 权限开了吗 用户授权了这个scope吗


洪涛
[email protected]

------------------ 原始邮件 ------------------
发件人: "modastic";
发送时间: 2013年11月30日(星期六) 凌晨0:07
收件人: "sinaweibosdk/weibo_ios_sdk";
抄送: "洪涛";
主题: Re: [weibo_ios_sdk] 调用 Invite Friend 时返回 "access denied", 查过token是有效的,而且之前也可以正常邀请 (#1)

用API接口 https://m.api.weibo.com/2/messages/invite.json 也是一样

返回的JSON:
{"error":"access_denied","error_code":21330,"request":"/2/messages/invite.json"

这个 error code 有没有更详细的解释?


Reply to this email directly or view it on GitHub.

from weibo_ios_sdk.

modastic avatar modastic commented on July 24, 2024

OAuth 授权时 scope 是 "all"

request.scope = @"all";

这个应该包括邀请的scope?

from weibo_ios_sdk.

hongtaozhy avatar hongtaozhy commented on July 24, 2024

1、申请好友邀请接口使用权限
此接口采用严格的申请接入流程。应用可邮件 [email protected] 申请,需要详细描述您应用或游戏的功能或服务,我们评估后确定是否为您开通。

2、使用微博登录
应用引导用户使用微博登录,采用OAuth2的Scope授权方式获得用户“发送私信邀请给你的微博好友”权限。

3、获取互粉好友
应用调用friendships/friends/bilateral接口,获取当前用户微博互粉好友列表,友好地引导、鼓励用户邀请好友加入应用或向好友送礼物等。

4、发送邀请
应用引导用户向好友发送使用邀请或送礼物,由用户主动发起向好友发送邀请,应用调用messages/invite接口实现向指定好友发送邀请。

from weibo_ios_sdk.

hongtaozhy avatar hongtaozhy commented on July 24, 2024

应该是没有发邮件申请吧?

from weibo_ios_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.