publish actions to friends

Dec 2, 2008 at 4:24 AM
How could i write comments, news or any sentence into my friend profiles ? i have tried publishuseractions, sendemail, notifications.send, this acticle too, without any result.  Someone could help me !!!!!

Dec 14, 2008 at 9:46 PM
Yes -- I can't get feed.publishUserAction to work either.

If it helps, hegoro, I *can* get notifications to work. Here's my VB code for that:
Dim fbm As CanvasIFrameMasterPage = CType(Master, CanvasIFrameMasterPage)
Dim strFriends as String = "2318681535135,2318681535135,2318681535135" 'COMMA-SEPARATED FRIEND IDs
fbm.API.notifications.send(strFriends, "This text will appear on the users' notification pages.")
Hopefully this helps.

As for feed.publishUserAction, here's the code for that:
Dim templateBundleId as Long = 38155159412
Dim templateData As New Dictionary(Of String, String)
'... initialize template_data
Dim longFriends As New List(Of Long)
'... initialize longFriends
fbm.API.feed.publishUserAction(templateBundleId, templateData, longFriends, "body_general", feed.PublishedStorySize.Full)
The target is a developer of the application and has the application installed.

It returns "True", and doesn't throw any errors.

However, nothing is added to the target's feed. I don't understand why -- anybody have any ideas?

Thank you,