Active
Project:
Facebook social plugins integration
Version:
6.x-2.0-beta4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 19:16 UTC
Updated:
7 May 2012 at 19:16 UTC
Hello Guys,
Even without mastering programming php, I could enable a facebook app using drupal for facebook(fbconnect) and fbsocial modules.
The html code of application that is installed on https://apps.facebook.com/lojacorpeteshop makes two calls fb-root script. see:
<div id="fb-root"></div>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings,
{"fb":{"base_url":"https:\/\/fb.corpeteshop.com.br","ajax_event_url":"https :\/\/fb.corpeteshop.com.br\/fb\/ajax","is_anonymous":false,"label":"fapagea pp","namespace":"lojacorpeteshop","perms":"email","fbu":"100003802535788"," reload_url":"https:\/\/fb.corpeteshop.com.br\/","reload_url_append_hash":0, "fb_init_settings":{"xfbml":false,"status":false,"oauth":1,"appId":"1756393 15824702","channelUrl":"https:\/\/fb.corpeteshop.com.br\/fb\/channel"},"tes t_login_status":0,"get_login_status":1,"controls":"","js_sdk_url":"https:\/ \/connect.facebook.net\/pt_BR\/all.js"}});
if (typeof(FB) == 'undefined') {
var e = document.createElement('script');
e.async = true;
e.src = Drupal.settings.fb.js_sdk_url;
document.getElementById('fb-root').appendChild(e);
}
//--><!]]>
</script>
<div id="fb-root"></div><script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: "175639315824702",
status: true,
cookie: true,
xfbml: true,
oauth : true,
channelUrl: "https://fb.corpeteshop.com.br/fb_social/channel"
});
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/pt_BR/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script> I plan on disabling these calls in the . Module files and then release a single called through the template php of the theme.
I would like help making a single call, using html5, like fb-socail is doing.
thank you