- 浏览: 1996115 次
- 性别:
- 来自: 深圳
-
文章分类
- 全部博客 (509)
- JavaEE (122)
- Oracle数据库 (29)
- JavaScript (37)
- SAP (5)
- MySql数据库 (7)
- JavaSE (4)
- Ajax (1)
- jQuery (13)
- SSH框架 (36)
- Web Service (10)
- JSF框架 (2)
- JBPM (0)
- ireport报表 (2)
- ibatis (5)
- Hibernate (31)
- JSP (11)
- Tomcat 服务器 (20)
- Other (19)
- JavaWeb (4)
- Maven (11)
- OSWorkFlow (10)
- HTML (13)
- Exception汇总 (7)
- SVN (2)
- 笑话 (1)
- JSTL (1)
- WebSphere Message Broker (13)
- ANT命令 (3)
- Liunx (12)
- Struts2 (26)
- Eclipse (6)
- DOS (3)
- Flex (11)
- WebSphere (1)
- 开发常用工具 (3)
- Junit (2)
- EJB (4)
- Struts1.2 (2)
- Jboss (1)
- Android (2)
- Java框架源码解析 (1)
- Spring (4)
- MyBatis (6)
- SpringMVC (4)
- Jetty (2)
- 数据库表设计 (1)
- SSO (4)
最新评论
-
贝塔ZQ:
也可以试试PageOffice插件,觉得更简单点
Jxl操作Excel设置背景、字体颜色、对齐方式、列的宽度 -
jia1208:
...
Could not publish server configuration for Tomcat v6.0 Server at localhost. -
u011274527:
赞
java.io.EOFException java.io.ObjectInputStream$PeekInputStream.readFully 错误 -
旭旭小牛啦:
怎么没哟了,继续赛
jQuery 选择器 -
wzw3919:
100行会报空指针
Java 解压缩zip文件
Facebook之Social Plugins
什么是Social Plugin
简单地说:你想在你网站的某个网页上显示一个按钮、一小块html代码等来链接Facebook应用,那么只要引入facebook的API和一段fbml就可以达到目的。
浏览器中运行看看结果 :

引用
Social plugins
Social plugins enable you to provide engaging social experiences to your users with just a line of HTML. Because the plugins are served by Facebook, the content is personalized to the viewer whether or not they have signed into your site.
Social plugins enable you to provide engaging social experiences to your users with just a line of HTML. Because the plugins are served by Facebook, the content is personalized to the viewer whether or not they have signed into your site.
简单地说:你想在你网站的某个网页上显示一个按钮、一小块html代码等来链接Facebook应用,那么只要引入facebook的API和一段fbml就可以达到目的。
Php代码:
- <html>
- <body>
- <div id="fb-root"></div>
- </body>
- </html>
- <script>
- // 116344281725102 是一个facebook应用的app id.
- window.fbAsyncInit = function() {
- FB.init({appId: '116344281725102', status: true, cookie: true,
- xfbml: true});
- };
- (function() {
- var e = document.createElement('script');
- e.async = true;
- //e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
- e.src = 'http://connect.facebook.net/en_US/all.js';
- document.getElementById('fb-root').appendChild(e);
- }());
- </script>
- <fb:login-button></fb:login-button>

发表评论
-
解决Java服务器端插入数据到Mysql中乱码问题--简单几步轻松解决乱码问题
2015-11-13 17:52 2428当写入数据到mysql数据库中发生乱码时.请检查以下几个地 ... -
设计模式之-代理模式-Proxy
2015-04-28 21:24 882使用代理模式之前需要知道代理模式能做什么? 能有哪些好处以及 ... -
构建高并发、服务化、低耦合企业级脚骨:springmvc+mybatis+restfull+webservice+bootstrap html5
2015-04-14 01:17 85SpringMVC + Mybatis + SpringS ... -
教您搭建大型互联网企业架构:springmvc+mybatis+restful+webservice+quartz+bootstrap
2015-04-13 21:54 99SpringMVC + Mybatis + SpringS ... -
大型互联网服务集成平台:springmvc+mybatis+restful+webservice+quartz+bootstrap html5
2015-04-13 21:49 81SpringMVC + Mybatis + SpringSe ... -
大型互联网服务集成平台:springmvc+mybatis+restfull+JMS+webservice+bootstrap
2015-04-12 23:36 22SpringMVC + Mybatis + SpringS ... -
大型互联网服务集成平台:springmvc+mybatis+restfull+JMS+webservice+bootstrap
2015-04-12 23:33 83SpringMVC + Mybatis + SpringS ... -
Maven构建大型互联网架构springmvc+mybatis+Restfull+Webservice+Bootstrap
2015-04-12 23:28 71SpringMVC + Mybatis + SpringS ... -
maven构建高大上开源架构:springmvc+mybatis+rest+bootstrap html5
2015-04-12 23:25 23SpringMVC + Mybatis + SpringS ... -
手机App后台架构:Springmvc+SpringSecurity+mybatis+Rest+Quartz+Bootstrap Html5( Maven构建)
2015-04-09 01:39 76APP后台架构Maven构建,模拟大型互联网架构,支持高并发 ... -
maven构建springmvc+mybatis+rest+webservice+bootstrap html5(cms开源项目)
2015-04-09 01:21 85SpringMVC + Mybatis + SpringS ... -
Java正则表达式
2014-11-26 21:03 1235Java正则表达式: package pack.ja ... -
Cannot convert value of type [org.springframework.cache.ehcache.EhCacheCache
2014-11-10 20:03 6274错误信息: [org.springframework.be ... -
Collections工具类中的frequency方法统计单词出现的次数
2013-11-05 21:30 2837最近发现了一个Collections中有一个很好用的方法: ... -
Java 压缩Excel文件生成.zip文件
2013-05-08 22:22 7960首先创建文件目录,然后生成Excel文件到创建的目录下, ... -
Java 解压缩zip文件
2013-05-08 13:14 8369不借助于其他的第三方 ... -
Jxl操作Excel设置背景、字体颜色、对齐方式、列的宽度
2013-04-06 22:26 57888最近项目中需要用到导出Excel文件,以下是我写了一个通过j ... -
java获取字节的长度.
2012-05-17 22:00 6762我们经常要获取中文,数字,或者英文字符所占字节的长度,下面就列 ... -
StringBuffer-reverse()字符反转功能
2012-05-17 21:42 7110在书上看到一个这样的例子, 采用最简便的方式把一串字符串反转过 ... -
java 打开IE
2012-05-23 22:14 1318Runtime.getRuntime().exec(" ...
相关推荐
9. **Social Plugins**: Facebook提供了一系列社交插件,如Like按钮、分享按钮和评论框,可以直接嵌入到网站中,增加互动性。 10. **Facebook Login**: 应用可以集成Facebook Login,让用户使用Facebook账户...
- **Social Plugins**:Facebook提供的一系列插件,如Like按钮、评论插件等,用于增加网站或应用的社会化特性。 - **Open Graph**:一种标准,用于定义应用的动作和对象,使用户在使用应用时能够创建动态(stories)...
5. **Social Plugins**:Facebook提供了多种社交插件,如“Like”按钮、“分享”按钮、评论框等,这些插件可以方便地嵌入到网站中,增加互动性。 6. **JavaScript SDK**:Facebook提供了JavaScript SDK,使得在网页...
3. **Social Plugins**:如“Like”按钮、“分享”按钮和“评论框”,它们可以直接嵌入到第三方网站上,使用户无需离开网站就能与Facebook互动。 4. **Facebook Login**:提供了一种统一的身份验证机制,用户可以...
本文将围绕“10 jQuery Plugins and Techniques for Doing More with Images”这一主题,深入探讨如何利用jQuery插件和技术来增强网页中的图片功能。** 1. **Image Resizing and Cropping** - jQuery提供了多种...
Vuepress插件社交分享 :megaphone: 社交共享插件 :open_book: ... plugins : [ 'social-share' ] , } :magnifying_glass_tilted_left: 现有技术 非常感谢提供了组件api源代码。 执照 :copyright:@
例如,Facebook的"Like"按钮可以通过其Social Plugins实现,而Twitter的"Tweet"功能则依赖于Twitter的Share Button。开发者需要理解这些API的工作原理,并将它们整合到jQuery事件处理函数中,确保用户点击按钮后能...
Social Sharing * Facebook Post * Twitter Post * Native Sharing Dialog * Sending e-mail * Documentation Apple TV * tvOS InApps * tvOS Game Center Post * tvOS iCloud * tvOS Gesture ...
例如,对于Facebook,可以使用其Social Plugins中的"Share Dialog";对于Twitter,可以利用"Share Tweet"功能。这些API允许开发者在用户点击分享按钮后,打开一个新的窗口或弹出层,预填充相应的分享信息,如网页URL...
<artifactId>spring-boot-starter-social-facebook <groupId>com.github.scribejava</groupId> <artifactId>scribejava-apis <version>YOUR_VERSION ``` 3. **配置QQ连接** - 在`application....
2. **API接口**:例如Google Maps API,允许开发者在网页中嵌入地图,或者Facebook的Social Plugins SDK,帮助集成社交功能。 3. **工具集**:包括编译器、调试器、性能分析工具等,帮助开发者进行代码优化和问题...
Social Sharing * Facebook Post * Twitter Post * Native Sharing Dialog * Sending e-mail * Documentation iAd App Network * Banners * Interstitials * 9 Gravity Options supported * Ability to ...
You will work through three complete projects and build a basic to-do list app, a London tourist app, and a complete social media app. All three projects have been designed to help you learn Ionic at ...
social: 'socialNetworkName', // 可选,如'facebook', 'twitter' successCB: function() { console.log('分享成功'); }, errorCB: function() { console.log('分享失败'); }, cancelCB: function() { console....