how to share image on facebook using facebook client c#? RRS feed

  • Question

  • User-1078128378 posted


    I am using facebook client in asp.net for facebook login integration and image sharing

    i have sucessed with facebook login

    now how can i share image using facebook client in asp.net?

    i downloaded facebook client from http://www.nuget.org/packages/Facebook.Client

    provide me any example code

    Tuesday, January 20, 2015 5:39 AM

All replies

  • User-1461986491 posted

    If you use Facebook JavaScript SDK then use below code to share pictures:

    	method: 'feed',
    	'link': myLink,
    	'picture': 'http://iviewsource.com/images/viewsourcemonogram-sm.png',
    	'name': myTitle,
    	'caption': 'View Source Blog',
    	'description': myExcerpt
    }, function(response) {
    	if (response && response.post_id) {
    		alert("Thanks. This has been posted onto your timeline.");
    	} else {
    		alert("The post was not published.");
    	} //Response from post attempt
    }); // Call to FB.ui

    Source: http://studyoverflow.com/blog/post-link-pictures-user-timeline-using-facebook-javascript-sdk/

    Thursday, February 12, 2015 12:04 AM