【问题标题】:Facebook Java API, sending app-to-user notificationFacebook Java API,发送应用到用户的通知
【发布时间】:2009-07-10 02:27:34
【问题描述】:

我正在努力让它发挥作用。这是我向单个用户发送应用程序到用户通知的实用方法。不需要会话 ID。

public Collection<String> notifyUser(String user, String msg) throws FacebookException
{
    FacebookJsonRestClient fbkClient = new FacebookJsonRestClient(FacebookUtil.appApiKey, FacebookUtil.appSecret);
    List<Long> recipients = new ArrayList<Long>();
    recipients.add(new Long(user));

    return fbkClient.notifications_send(recipients, msg, true);
}

我正在尝试使用我的用户 ID。我从来没有收到通知,返回的集合是空的(应该是有效通知的用户列表)。

我做错了什么?

【问题讨论】:

    标签: java facebook notifications


    【解决方案1】:

    REST API 已弃用。您应该使用更新的技术来发送“邀请”。

    以下是向用户发送应用请求的方法:https://developers.facebook.com/docs/reference/dialogs/requests/

    但您最好使用此处描述的新对象/操作:

    http://developers.facebook.com/docs/opengraph/tutorial/

    【讨论】:

    • 抱歉,我好久没来了!
    【解决方案2】:

    Facebook 应用程序禁用的通知

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多