使用 django 分享到社交页面

发布于 2024-09-27 22:45:40 字数 322 浏览 2 评论 0原文

在我的 Django 应用程序中,我的网站上有不同的内容。现在我想在每个页面上添加“分享到...(Facebook、Twitter、Buzz)”链接。但我不想重定向到社交应用程序页面,而是想打开带有(如果需要)日志记录/添加可能性的弹出窗口。如何开始?我需要执行哪些步骤/操作以及我可以使用哪些现成的应用程序?我已经创建了一个 Twitter 应用程序和 Facebook 应用程序,并且拥有所有密钥。

我的意思是类似这里的链接 http://mashable.com/awards/ (左侧)。

In my django application I have different content across the site. Now I would like to add "Share this to... (Facebook,Twitter,Buzz)" link on each page. But instead of redirecting to a social app page I would like to open popup with (if needed) logging/adding possibility. How to get started ? What steps/operations I need to perform and what ready made applications can I use ? I have already created a twitter app and facebook app and have all the keys.

I mean something like links here http://mashable.com/awards/ (left-side).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心凉 2024-10-04 22:45:40

Sharethis:http://sharethis.com/ 在我使用过的每个实例中都运行良好。

Sharethis: http://sharethis.com/ works well in every instance I've used it.

淡水深流 2024-10-04 22:45:40

如果您只想要特定的“共享按钮”或使用默认样式,只需输入“social_name '共享按钮'”,您将获得要包含在您的网站上的js(这是您在帖子中提到的3个):

http://www.facebook.com/share/
http://twitter.com/goodies/tweetbutton
http://www.google.com/buzz/api/admin/configPostWidget

If you want only specific 'share buttons' or with default style justy type " social_name 'share button' " and you will get the js to include on your site (here are the 3 you mentioned in post):

http://www.facebook.com/share/
http://twitter.com/goodies/tweetbutton
http://www.google.com/buzz/api/admin/configPostWidget

唱一曲作罢 2024-10-04 22:45:40

如果您已经将应用程序编写为可混搭的,一种方法是将登录对话框(如果需要)放在 jQuery 对话框中。 http://jqueryui.com/demos/dialog/

If you already have the app written to behave like mashable, one approach is to put the login dialog (if it's needed) in a jQuery dialog. http://jqueryui.com/demos/dialog/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文