我正在努力让这个工作。这是我向单个用户发送应用程序到用户通知的实用方法。不需要会话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进行尝试。我从未收到通知,返回的集合为空(应该是有效通知的用户列表)。
我可能做错什么了?