Jump to:
| Project: | Drupal for Facebook |
| Version: | 6.x-3.x-dev |
| Component: | Canvas Pages |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello,
I am in a slight fix using Drupal for fb. Before I write the issue, yes I have read the readme.txt entirely and have been using the module for a couple of weeks now
I was trying to port my standalone drupal application to facebook using this module but realized that the javascript support in fbml is limited. I was apprehensive to modify all the existing js and hence, chose to run the app in an iframe. The issue with running it in iframe is that the "require login" feature for automatically authorizing users doesn't seem to be working at all!
Could this be an issue with the configuration OR the order in which are the modules loading up OR the require_login feature support is limited only to the fb_fbml theme and not iframes?
Please let me know if there is a workaround to this problem. Thanks
Ravdeep
Comments
#1
Sounds like a bug. As far as I know it should work in FBML and iframe apps. Are you certain you haven't authorized the app (that's what require login means)?
Enable the fb_devel block in the iframe and post what it says here.
#2
Hey dave! what's up! . i'm caling an iframe page!, . When i put it as a "Allow anyone" it get conected easily . also i'm able to navigate the app inside the iframe! with no Problems!> BUT., when i put it as a " Allow logged-in users" it get connected with complications it take a lot of time and sometimes!i get a time out error, after refreshing it connect me, !BUt when clicking a link ( menu, node...) it redirect me out of facebook to the drupal site with something like this :
http://www.drupalsite.com/fb_cb/1/user/4?auth_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXalso get this from devel in both situations :
Facebook client libraries will not work properly if arg_separator.output is not "&". Currently the value is "&". Please change this in settings.php or php.ini.#3
I changed
"&".for"&".in settings.php and it's not showing anymore that error message , BUT still get redirected to the siteand i get this also from Facebook Devel Info when I got redirected
Page Status = Global fb instance is set (followed link in iframe, or handling a form).#4
hey dave, this is me again!. hmm i think the redirection! just happen in IE. i'm using IE8. , in firefox seems to be working fine!.
#5
update: i'm playing with XFBML inside the iframe app using firefox and after putting all the code needed to run xfbml, it start redirecting the content to the drupal site " as i reported before" this is now happening in firefox 3.0. :( here it is what i put:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
</head>
<html>
<body>
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<fb:profile-pic uid="695062376" facebook-logo="true" linked="false" width="300" height="400"></fb:profile-pic>
<script type="text/javascript"> FB_RequireFeatures(["XFBML"], function(){ FB.Facebook.init("xxxxxxMykeyxxxxxxx", "/xd_receiver.htm"); }); </script>
</body>
</html>
note: this error is still happenning in IE8 with or with out the XFBML code above and without the xd_receiver.htm .
#6
Leo, you should be using the facebook connect module (fb_connect.module in Drupal for Facebook), rather than creating your own xd_receiver. But that's off topic of this issue. Create a new issue if you need help with that.
#7
Ok dave, :) I will try using Facebook connect! , let you know!