Facebook Entwicklungs-Toolkit für .net - setinfo

stimmen
2

Ich spiele mit dem Entwicklungs-Toolkit Facebook und ich kann nicht an der Arbeit profile.setinfo. Die Dokumentation ist nicht sinnvoll. Ich verwende die neueste Quelle - 28656.

Kann jemand ein VB.Net Beispiel für mich hinterlassen bitte?

Update: Ich wurde für ein bestimmtes Problem gefragt, so ist es hier:

Setinfo nimmt eine List (Of facebook.Schema.info_field)

und info_field soll eine Liste nehmen (Of facebook.Schema.info_item)

aber es scheint stattdessen eine itemsLocalType zu wollen. So ist der Fehler

Kann nicht das Objekt des Typs ‚System.Collections.Generic.List`1 [facebook.Schema.info_item]‘ ‚itemsLocalType‘ einzugeben.

Veröffentlicht am 14/02/2009 um 03:06
quelle vom benutzer
In anderen Sprachen...                            


1 antworten

stimmen
6

Ich arbeitete sie endlich auf meinem eigenen:

Dim items = New facebook.Schema.info_field.itemsLocalType     
items.info_item.add(New Schema.info_item With {.label = "Happy", .image = "http://imageurl1/", .sublabel = "", .description = "The original and still undefeated.", .link = "http://www.scottstonehouse.ca/blog"})

items.info_item.Add(New Schema.info_item With {.label = "Indifferent", .image = "http://imageurl2/", .sublabel = "", .description = "meh....", .link = "http://www.scottstonehouse.ca/blog"})

items.info_item.Add(New Schema.info_item With {.label = "Sad", .image = "http://imageurl3/", .sublabel = "", .description = "Oh my god! you killed my dog!", .link = "http://www.scottstonehouse.ca/blog"})

items.info_item.Add(New Schema.info_item With {.label = "Cool", .image = "http://imageurl4/", .sublabel = "", .description = "Yeah. whatever", .link = "http://www.scottstonehouse.ca/blog"})

Dim ifields = New List(Of facebook.Schema.info_field)()

ifields.Add(New facebook.Schema.info_field With {.field = "test field name", .items = items})

_fbService.API.profile.setInfo("Info Title", 5, ifields, _fbService.API.uid)
Beantwortet am 14/02/2009 um 05:29
quelle vom benutzer

Cookies help us deliver our services. By using our services, you agree to our use of cookies. Learn more