homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Social Media / Facebook Marketing
Forum Library, Charter, Moderators: httpwebwitch & not2easy

Facebook Marketing Forum

Connect button with Facebook

 8:46 am on Feb 2, 2012 (gmt 0)

I like to set Connect button inside Facebook platform.
// Load the SDK Asynchronously
window.fbAsyncInit = function() {
appId : 'YOUR_APP_ID', // App ID
channelUrl : '//WWW.YOUR_DOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML

var fb = document.createElement('script'); fb.async = true;
fb.src = "//connect.facebook.net/en_US/all.js";

1. Is this correct change?
2. Where is correct language folder list as I have many countries like:
3. Will xfbml: true change in the correct way top part like:
<html xmlns:fb="http://ogp.me/ns/fb#">
4. Is there need for id = 'facebook-jssdk'; if (document.getElementById(id)) {return;}js.id = id;
what will do this ID?

5. How is defined fb-root inside getElementById('fb-root')

as there is quoted:
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";



 10:51 am on Feb 21, 2012 (gmt 0)

Is there possible to reply?

Global Options:
 top home search open messages active posts  

Home / Forums Index / Social Media / Facebook Marketing
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved