Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

facebook - Programatically add and youtube video to wall post -


how can embeded youtube video in facebook wall? tried pass video url using "source" member, didn't work. after checking json of feed posted manually see there handling fb's server code make happen.

the feed shows me this:

"id": "100001460921297_170524112986785",          "from": {             "name": "fw as",             "id": "100001460921297"          },          "message": "in sbsr 16 july 2010 portugal",          "picture": "http://external.ak.fbcdn.net/safe_image.php?d=9f79134b5acff03a2d60adb0320dbc8b&w=130&h=130&url=http%3a%2f%2fi.ytimg.com%2fvi%2ftoypsnkfhre%2f0.jpg",          "link": "http://www.youtube.com/watch?v=toypsnkfhre",          "source": "http://www.youtube.com/v/toypsnkfhre&autoplay=1",          "name": "the strokes - last nite",          "caption": "www.youtube.com",          "description": "music video strokes performing last nite. (c) 2001 bmg",          "icon": "http://static.ak.fbcdn.net/rsrc.php/yj/r/v2onatytqze.gif", 

is there way achieve via c# sdk? couldn't find info helpfull far.

any ideas?

thanks , merry christmas!

if use facebook c# sdk, after successful authentication , authorization need post link.

i assume _facebookapp instance of facebookapp class , authorized, code be:

        var parameters = new dictionary<string, object>();          parameters.add("message", commentary);         parameters.add("link", link);         if (!string.isnullorempty(thumbnailimageurl))             parameters.add("picture", thumbnailimageurl);          try         {             _facebookapp.post("me/feed", parameters);         }         catch (exception ex)         {             return ex.message;         } 

where commentary optional message user link, e.g.: "guys, check out",

link url shared, e.g.:"http://www.youtube.com/watch?v=_oblgsz8ssm",

thumbnailimageurl url thumbnail image used in link post, e.g.:"http://i.ytimg.com/vi/_oblgsz8ssm/0.jpg".

hope help.

cheers.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -