Facebook融入网站 [英] Facebook Integration into website

查看:132
本文介绍了Facebook融入网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将喜欢按钮整合到一个网站上,但我对网络上提供的信息感到困惑。我读了这篇文章,这是在另一个stackoverflow文章,但有一些问题: http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/

I'm looking to integrate the "like" button into a website, but I'm a little confused with the information available on the web. I read this article, which was in another stackoverflow article, but have some questions: http://www.saschakimmel.com/2010/05/how-to-capture-clicks-on-the-facebook-like-button/.

我已经在Facebook中设置了一个页面,根据我在上面的链接中了解到,您需要设置一个App来获取API密钥。我不明白的是,如果我使用这个API密钥,它将指向我新创建的App,它没有粉丝群。如何链接此API密钥(或通过页面管理员设置另一个密钥),以便我可以让用户喜欢真正的Facebook页面?

I've setup a "Page" already in facebook, and from what I understand in the link above, you need to setup an "App" to get an API key. What I don't understand though is that if I use this API Key, it's going to be pointing to my newly created "App", which has no fan base. How do I link this API Key, (or setup another key through the page admin), so I can have users "like" the real facebook page?

我想在用户喜欢该页面的时候运行一些JavaScript函数,但是我也对API函数调用有点困惑,而且这些函数是否返回true /假值?我只是真的想运行这些js功能,如果用户还没有喜欢的页面。

I want to run some javascript functions the moment a user likes the page, but I'm also a little confused on what API functions call, and whether these return a true/false value? I only really want to run these js functions if the user has not already liked the page..

希望这一切都有道理,会喜欢你必须提供的任何解释指向正确的方向。

Hope this all makes sense, would love any explanations you have to offer to point me in the right direction.

BUMP

推荐答案

如果你只需要在页面中使用相似的按钮,请访问 http://developers.facebook.com / docs / reference / plugins / like /

If you just want an like button in your page , go to http://developers.facebook.com/docs/reference/plugins/like/

将您的fb页面URL粘贴到URL(Like)文本框中

paste your fb page url in "URL to Like (?)" text box

获取代码

粘贴到您想要显示的网站源代码的div框中

paste in the div box of ur web site source code where you want it to appear

这篇关于Facebook融入网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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