如何让我的网站上的访客在他们的Facebook新闻资讯中分享我的照片? [英] How do I allow visitors on my site to share my photos on their facebook news feed?

查看:122
本文介绍了如何让我的网站上的访客在他们的Facebook新闻资讯中分享我的照片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让我的网站上的访客在Facebook的墙壁/新闻资讯中分享我的照片?

How do I allow visitors on my site to share my photos, on their Facebook wall/news feed?

我看到有一个分享或喜欢从Facebook的选项,但似乎共享整个页面。

I see that there is a "share" or "like" option from Facebook but that seems to share the whole page.

我想要这样做,所以每个图片旁边都有一个小的Facebook图标,当他们点击它,该特定图像仅添加到他们的Facebook新闻Feed /墙壁。

I would like to have it so that each picture has a small Facebook icon next to it and when they click it, that specific image only is added to their Facebook news feed/wall.

我的网站在ASP.NET 3.5中使用C#。我可以在C#中开发,所以如果这是一条路线,我正在努力实现这一点。

My site is in ASP.NET 3.5 using C#. I can develop in C# so if that is a route to what I am trying to achieve that is fine.

我看到这个问题和答案:

如何在我的网站上发布Facebook中的新闻Feed

I did see this question and answer:
How to post news feed in facebook from my site

这是否仍然是正确的方法?有没有这样的例子?

Is this still the correct way to do this? Are there any examples of this?

推荐答案

你可能想看看Facebook ,尤其是打开图协议。如果你的照片可以有一个自己的页面,使用元标记在头。

You may want to look at The Facebook Open Graph Protocol, esp. if you're photos can have a page of their own, with meta tags in the head.

请参阅(在对象类型部分的底部)

See (at the bottom of the Object Types section)


使用文章对于任何代表短暂内容的网址,例如新闻文章,博文,照片,视频等。

Use article for any URL that represents transient content - such as a news article, blog post, photo, video, etc.

这可能适合您的需要(并且应该允许你在图像旁边放置一个类似的按钮)。如果没有,请通过Facebook开发者文档查看。

This may suit your needs (and should allow you to place a like button next to the image). If not, take a look through the facebook developers docs.

这篇关于如何让我的网站上的访客在他们的Facebook新闻资讯中分享我的照片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆