How could i write comments, news or any sentence into my friend profiles ? i have tried publishuseractions, sendemail, notifications.send, this acticle http://www.itu.dk/~friism/blog/?p=92 too, without
any result. Someone could help me !!!!!
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)
Hopefully this helps.
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.")
As for feed.publishUserAction, here's the code for that:
Dim templateBundleId as Long = 38155159412
The target is a developer of the application and has the application installed.
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)
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?