silverlight 4.0 - Facebook c# sdk, silverlight4, login example please -


what upload photo fb user's wall. have photo in memory byte[] array. posting not of problem, getting user log in first having difficulty. documentation sdk in web context missing whole pages, , has 'todo' through pages have content.

there sl4 sample, ide (vwde), not support unit-test folders. searching though unit tests hand, still not find 1 logging user in. have facebook app already, no problem there.

there few gotchas have turned up: silverlight in-browser not support control. cassini web-server not supported sdk.

if post example particular scenario, or link sample, using recent version of sdk, extremely grateful.


thank prabir. pointers on image upload? code to-date. returns facebookoautherror(#1)unexpectedexception.

        var fb = new facebookclient(_accesstoken);         writeablebitmap wb = new writeablebitmap(this.picprofile, null);         string filename = wb.savetopng();         byte[] data = converttobytearray(wb);         fb.postcompleted += (o, e2) =>         {             if (e2.cancelled) { var cancellationerror = e2.error; }             else                 if (e2.error != null) dispatcher.begininvoke(() => messagebox.show(e2.error.message));         };         var parameters = new dictionary<string, object>();         parameters["caption"] = "fitness tracker -- measurement of weight on time";         parameters["source"] = new facebookmediaobject         {             contenttype = "image/png",             filename = filename         }.setvalue(data);         fb.postasync("me/photos", parameters); 

many thanks, m.r.

you can find samples in v5 branch @ https://github.com/facebook-csharp-sdk/facebook-csharp-sdk/tree/v5/samples


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -