在facebook上分享一张照片

时间:2016-02-11 12:32:20

标签: c# visual-studio-2013 webforms

如何将桌面上的照片分享到Facebook?我从互联网上复制了这段代码,但它确实有用,但我不知道如何更改这里写的内容以分享我已经添加到webform中的照片

 <script type="text/javascript">
$(document).ready(function () {
$('#share_button').click(function (e) { 
e.preventDefault();
FB.ui(
{
method: 'feed',
name: 'jQuery Dialog',
link: 'http://www.c-sharpcorner.com/authors/raj1979/raj-kumar.aspx',
picture: 'http://www.c-sharpcorner.com/UploadFile/AuthorImage/raj1979.gif',
caption: 'This article demonstrates how to use the jQuery dialog feature in ASP.Net.',
description: 'First of all make a new website in ASP.Net and add a new stylesheet and add .js files and put images in the images folder and make a reference to the page.',
message: 'hello'
}); }); });
</script>    

0 个答案:

没有答案