views:

451

answers:

1

I'm trying to get this to work. This is my utility method for sending an app-to-user notification to a single user. Session id is not needed for that.

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);
}

I'm trying it with my user id. I never get the notification, and the returned collection is empty (should be a list of users who were effectively notified).

What could I be doing wrong?

A: 

notifications where disabled from facebook apps

flybywire