PublishStory without images problem

Aug 2, 2007 at 5:12 PM
Hi there. I'm fairly new to (having coded in asp3 for years) so I'm probably making a very simple mistake here so apologies if that's the case. I'm trying to use the PublishStory method to add an entry to the news feed but I'm having a problem with the images collection parameter. I'm getting the following error for the images parameter:

Value of type 'String' cannot be converted to 'System.Collections.ObjectModel.Collection(Of Facebook.Entity.PublishImage)'.

with this code:

Me.FBService.PublishStory("Jon is trying out the application", "", "")

where I've left the images section as an empty string as I don't want an image in the entry.

When I try and change the "" so that it's referencing a collection by doing this:

Dim myImages As New System.Collections.ObjectModel.Collection(Of Facebook.Entity.PublishImage)
Me.FBService.PublishStory("Jon is trying out the application", "", myImages)

the page seems to have an error when I browse to the application canvas page in Facebook despite nothing showing up when debugging.

Any help would really be appreciated.


PS - When I added the application I did tick the box that allowed it to post the news feed and mini-feed and I'm using Version 1.2