.net के लिए फेसबुक विकास टूलकिट - setinfo

वोट
2

मैं फेसबुक विकास टूलकिट के साथ खेल रहा हूँ और मैं काम करने के लिए profile.setinfo नहीं मिल सकता है। प्रलेखन उपयोगी नहीं है। 28,656 - मैं नवीनतम स्रोत का उपयोग कर रहा हूँ।

किसी ने मुझे के लिए पोस्ट कर सकते हैं एक VB.Net उदाहरण कृपया?

अद्यतन: मैं एक विशिष्ट समस्या के लिए कहा गया था, यहाँ तो यह है:

Setinfo एक सूची (facebook.Schema.info_field का) लेता है

और info_field एक सूची (facebook.Schema.info_item का) लेने के लिए माना जाता है

लेकिन यह बजाय एक itemsLocalType चाहते लगता है। तो त्रुटि है

प्रकार की वस्तु कास्ट करने के लिए 'System.Collections.Generic.List`1 [facebook.Schema.info_item]' टाइप करने के लिए 'itemsLocalType' में असमर्थ।

14/02/2009 को 03:06
का स्रोत उपयोगकर्ता
अन्य भाषाओं में...                            


1 जवाब

वोट
6

मैं अंत में यह अपने दम पर बाहर काम किया:

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)
14/02/2009 को 05:29
का स्रोत उपयोगकर्ता

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