Needs review
Project:
Facebook social plugins integration
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Jul 2010 at 10:29 UTC
Updated:
2 Oct 2014 at 03:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
HS commented+1
Comment #2
ferdi commentedI'd be happy to help. I havent used fbconnect and I dont quite know how it works. As other users have requested #787648: New facebook login I am planing to implement some single sign-on functionality using fb's login button (http://developers.facebook.com/docs/reference/plugins/login, http://developers.facebook.com/docs/guides/web#login).
What do you have in mind about the integration between fbconnect and fb_social ?
thanks!
Comment #3
vectoroc commentedI want to remove functions of social plugins from fbconnect. About sharing - perhaps I can do it through hook_form_alter. We need to solve way to initialize FB sdk. I see few ways :
1 - you add next code to your hook_footer
jQuery.event.trigger('fb:init');(in this way I have to overwrite fb_social_appid and fb_social_locale variables that's not good)2 - you check some conditions and dont print footer if there is already exists modules that initializes FB sdk
Comment #4
vectoroc commentedI've created submodule that integrates fbconnect & fb_social
One thing that I need from you is attached here
Comment #5
sohlex commentedI beg you to make this official!
Comment #6
ferdi commentedCommitted, http://drupal.org/cvs?commit=400204
I have no idea what it does. Please test. And to be honest I'd do it differently. We need a fb_api module that load all the needed libraries and other modules have it as a dependency
thanks!
Comment #7
vectoroc commentedIt allows me to call own initialization procs after initialization of fb js sdk
$(document).bind('fb:init', function() { ... })Comment #8
ferdi commentedComment #10
liquidcms commentedI have been having a lot of trouble getting fbconnect to work and then realized this weekend that it was due to an incompatibility with the fb_social module.
i tried using the fbconnect-fb_social comp module that comes with fbconnect but no luck. I also just tried the latest dev version of fb_social and verified that the patch here had been applied - still no luck.
so as far as i know.. i have latest devs of everything: both these modules as well as the fb sdk.
Comment #11
vectoroc commentedI think that much better way to integrate is way like facebook_stream does
Comment #12
vectoroc commenteda simple patch
Comment #13
vectoroc commentedforgot to catch hook_footer
Comment #14
HS commentedSo, fb_social and fbconnect don't work together yet?
Comment #15
pcambraI've applied the patch and fb_social (I only tested likebox) works and I can login using drupal for facebook, but the form in the settings of the fb_social that allows me select the "other facebook module" yields a very ugly js error.
Comment #16
davidajnered commentedThe conflict with fbconnect can be solved by adding the javascript with drupal_add_js. I have only tried with the likebox, so the patch needs to be tested more thoroughly.
Comment #17
D.H. commentedIf nothing of the above mentioned works, it's also possible to exclude the content of fb_init and fb_footer from all pages except "/user/login", "/user/register" and "/logout". Normally you wouldn't have a fb_social like button on those paths. The only bug with this solution is that you need to call "/user/login" or "/user/register" to get logged in again on your site when you are already logged in with facebook.
Comment #18
socialnicheguru commentedThe previous comments were about Drupal 6.
Is there a Drupal 7 fix?
Comment #19
damienmckennaClosed two duplicates: #1293826: Add ability to not include fb-root settings for compatibility with other Facebook modules and #1505274: conflict with modules/fb