Can send Notification only to user of application and not to friends

Oct 23, 2009 at 8:09 PM

Hi,

I'm trying to send notification to friends of user and was not able to do so. It only sent notifications if "to_ids" = logged user id . I tried to put any friend id and they did not getting anything. Please advise.

here is code i'm using. I was not able to use notifications.send since it alway was returning session requiered error, so i'm using sendRequest instead.

<font size="2" color="#2b91af"><font size="2" color="#2b91af">

Dictionary

</font></font><font size="2" color="#2b91af">

 

</font>

<string,string> parameters = new Dictionary<string,string>();

<font size="2">

parameters.Add(

</font>

"method", "notifications.send");

<font size="2">

parameters.Add(

</font>

"to_ids", "<usersid>");

<font size="2">

parameters.Add(

</font>

"type","app_to_user");

<font size="2">

parameters.Add(

</font>

"notification", "Marina posted  on her wall");

<font size="2"><font size="2">

API.SendRequest(parameters,false);

</font></font><font size="2">

 

</font>

 

 

Oct 26, 2009 at 2:58 AM

I think you need the email extended permission to send someone an email, so it won't be possible to send emails unless someone has added your app and granted the email extended permission.

Oct 26, 2009 at 7:21 PM

actually i had to just change app_to_user property to user_to_user property and also user session = true in sendrequest call and its working like a charm

Nov 5, 2009 at 11:04 PM

How can i know which parameters are acceptable in the properties dictionary?

For example:

"method""notifications.send"

Are there others methods?

 

tks