Facebook fejlesztési eszközrendszer .net - setinfo

szavazat
2

Játszom a Facebook fejlesztői eszközkészlet és nem tudok profile.setinfo dolgozni. A dokumentáció nem hasznos. Én a legújabb forrás - 28656.

Tud valaki tudj VB.Net példa számomra, kérem?

Frissítés: Azt kérték egy adott problémát, tehát itt van:

Setinfo vesz egy lista (Of facebook.Schema.info_field)

és info_field állítólag, hogy egy lista (Of facebook.Schema.info_item)

de úgy tűnik, hogy szeretne egy itemsLocalType helyett. Tehát a hiba

Nem lehet, hogy a leadott típusú objektum 'System.Collections.Generic.List`1 [facebook.Schema.info_item]' to be 'itemsLocalType'.

A kérdést 14/02/2009 03:06
a forrás felhasználó
Más nyelveken...                            


1 válasz

szavazat
6

Végül dolgozott ki a saját:

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)
Válaszolt 14/02/2009 05:29
a forrás felhasználó

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