Facebook分享按钮:如何实现 [英] Facebook share button: how to implement

查看:149
本文介绍了Facebook分享按钮:如何实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试图找出如何实现分享按钮,与实现方式完全一样此处。我想要让用户发布一个给定的链接到他们的新闻提要,而不需要任何种类的应用程序权限与一些可选文本,他们可以添加到它。 BuzzFeed如何做? Facebook的文档对我来说非常混乱,这就是为什么我很难自己实现它。如果有人能够布局需要采取的步骤,那将是巨大的。我需要放入我的HTML页面?我需要创建一个Facebook应用程序吗?

I'm trying to figure out how to implement the Share button exactly as how it is implemented here. I want the ability to let users post a given link to their news feed without requiring any kind of app permissions with some optional text that they can add to it. How did BuzzFeed do it? The Facebook documentation is very confusing to me which is why I'm having a hard time implementing it myself. It'd be great if somebody could just layout the steps needed to take. What exactly do I need to put in my HTML page? Do I need to create a Facebook app?

推荐答案

要共享您的网页,您不需要创建一个Facebook应用程序。

To share your web-page, you don't need to create a facebook application.

你可以把Facebook的共享图像放在那里,一个 href =http:// www.facebook.com/sharer.php?u=<your url>

You can just put that Facebook-share image there, with an href = "http://www.facebook.com/sharer.php?u=<your url>"

Facebook的按钮也允许共享。为您的网站生成的代码在 官方文档

Facebook's like button allows sharing as well. The code to generate that for your website is in the official documentation.

这篇关于Facebook分享按钮:如何实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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