Talk:Notifications.send
From Facebook Developers Wiki
[edit] Anonymous messages
Is there any way to send a notification without having the sender's username tacked onto the front? I'm trying to preserve the anonymity of my users and being able to send someone a notification without any facebook user id's (besides that of the recipient of course) involved would be great.
I am trying to do the same thing. Any help would be appreciated.
- Login as the user and send it to the user as themself 666135104 07:36, 17 January 2008 (PST)
Are there any examples or howto's detailing how to perform this?
- If to_ids is left empty, then the name will not be automatically prepended to the message, and your notification will be sent to the current user. Basic examples for using notifications can be found on both this wiki page, as well as a number of forum posts at http://forum.developers.facebook.com.
[edit] Email Services
Given these restrictions, is there any way to set up an application that has periodic notifications that are NOT driven by a user event (like clicking on a button)? I'm not talking about spamming, but a service that users request to get daily or weekly emails w/o logging into the FB system.
- Reading the docs it would seem that you can send emails to users who have installed the application without any restrictions, utilizing the Infinite Session of the app owner and parsing in all the Ids should work - I am just about to try.
[edit] Which parameter bypasses the message confirmation page?
I'm looking for a way to send notifications directly to friends of the app user, based on this line of the function description: 'You can also send messages to the user's notification page without needing any confirmation.'
- Yes to the user's, not to their friends! Sending to friends always requires confirmation, unless I think they also have the app installed
[edit] Sending Notifications to Application Users
My application creates groups of users that are modifiable by all the members of the group. I want all group members to get a notification when the group is modified in some way.
The notifications.send[1] page defines the to_ids parameter as "Comma-separated list of recipient ids. These must be friends of the logged-in user or people who have added your application." However, the Bugs & Omissions wiki page notes that "notifications.send only sends to friends of the user - this isn't documented anywhere!".
I've tried sending the notification using the infinite session key for the account that created the application, but any non-friends of that account specified in the to_ids parameter of notifications.send do not receive the notification.
Does anyone know how to use notifications.send to send notifications to users who have installed the application, but you ( the developer ) may or may not have access to a session key for a friend of that user?
--chphilli 09:54, 15 August 2007 (PDT)
- I'm trying to do the exact same thing and I can't get anything to work. I'm thinking of setting up just some emailing thing, although Facebook notifications would be the best. - Colin Kierans, 761070248 02:39, 16 September 2007 (PDT)
--pampatdu
- Same problem here. Anybody got solutions?
[edit] Links with anchor doesn't work
I want to put a link in the notification that will take the user to a certain part of a page, normally it can be trivially achieved by a link with an anchor, like http://domain/page.php#section, but facebook strips out anything after # in the notification sent out. Any solutions?
--- I have the same problem with the "&" char in my URL. Has anyone found a work-around for this yet?? Tried URL encoding which does not solve the issue.
[edit] Is there a way to only send an email without sending a notification as well?
On the spamminess discussion page, Ari says: "Spamminess is currently entirely determined based on notifications sent to the notifications page and not at all based on other things like feed stories, notification emails, or requests."
So, does anyone know if it's possible to send an email without sending a notification too? The API call for notifications.send() shows that the notification is required and the email message is optional, which seems to contradict what Ari is saying above.
[edit] Does e-mailing from notifications.send() work anymore?
So, is it even possible to send an e-mail with the notifications.Send method anymore? I've seen some stuff online about it being removed, and I can't seem to get it to work.
- Correct. Check out the notifications.sendEmail API call
[edit] The email part is deprecated?
so the email part is deprecated? is there any new function that will send email?
- Check out the notifications.sendEmail API call
[edit] links in notifications must be fully qualified
Perhaps this is obvious but links that you include in a notification must be fully qualified (include http://domain....) or they will simply be deleted from the notification by facebook when delivered.122612996 12:14, 16 March 2008 (PDT)
