Jump to:
| Project: | Drupal for Facebook |
| Version: | 6.x-3.x-dev |
| Component: | Facebook Connect |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
Hey dave i decided to open a new issue! Hope i can make myself clear .
what i'm trying to do is to make an iframe app that will Create Local Accounts ,and can a use XFBML markup inside the iframe .
issue:
I decided to make two apps One to be used as a main facebook app, and the other one to turn on Fb connect and being able to use XFBML.
when both apps ( app & connect ) are "Allow anyone" there is no problem i'm able to use XFBML, and i'm able to navigate inside the iframe without leaving Facebook. But as a Anonimous user.
when i turn on "Allow logged-in users" ( in the app) i can land to main page ( iframe) But XFBML does not work , when i click in whtvr link ( ex: http:www.domain.com/fb_cb/1/node/1) it redirect me to a blank page http://www.facebook.com/login.php?api_key=47cMyapikey99999999999999v=1.0&next=http%3A%2F%2Fedomain.com%2FMYsubfolder%2Ffb_cb%2F1%2Fnode and then to http:www.domain.com/fb_cb/1/node/1 but outside the iframe .
.
so everytime my app point to a...... fb_cb/1/ link it redirect to my Drupal page ,and does not work xfbml . when the iframe app is anonymous and point to a regualar drupal page a everything is ok including XFBML ,
Comments
#1
Don't use two applications for this. For canvas pages with iframes, both the FBML portion of the page and the iframe inside should be the same application. Otherwise all bets are off for session management and just about everything else.
I realize there may be a bug here but I can't help with that configuration. Set it up as one app and report what's going wrong.
#2
* Hey Dave, Just made the Homework., putting everything in one app., when ( Anonymous) Allow anyone- , it works XFBML and I'm able to navigate inside fb:ifrane ,
Page Status = Rendering iframe.fb_facebook_user =
fb_api_check_session() = Returned FALSE
local user = Anonymous
fb_get_fbu =
base_url = http://mydomain.com/folder
base_path = /folder/
url() returns = /folder/fb_cb/1/
$_REQUEST[q] is = fb_cb/1/
arg(0) is = node
arg(1) is = 10
session_id = fb_canvas_1_shared_session
session_name = fb_canvas_1_SESS050xxxxxxxxxxxxxxxxxxxxxxx
Page Status = Global fb instance is set (followed link in iframe, or handling a form).Problem
* When Allow logged-in users- : as soon as i check the field it redirect me to this page below even when i point my browser to my domian name.
http://www.facebook.com/login.php?api_key=47c8a8d044ca8edxxxxxxxxxxxxx&v=1.0&next=http%3A%2F%2domain.com%2Ffolder%2Fadmin%2Fcontent%2Fnodeand don't let me login into my siteTha'ts is in the site side
in the app side as soon as a Point my browser to my app, app.facebook.com.app, I get to the Facebook Authorization page then i land to the app and automatically redirect me to this adress outside Facebook
http://mydomain.com/folder/fb_cb/1/fb_connect/receiver?auth_token=76b1e5f755d782cxxxxxxxxxxxxxxxxwhat do you think?
#3
I'm also stock Here , same problem using DFF connect and App modules.
#4
If anyone has the same problem! using xfbml markup inside an iframe! when . connect + app.
use!
window.onload = function() { FB_RequireFeatures(["XFBML"], function() { FB.Facebook.init("<apikey", "http://www.domain.com/fb_cb/1/fb_connect/receiver"); FB.XFBML.Host.get_areElementsReady().waitUntilReady(function() { document.getElementById("container").style.visibility = "visible"; }); }); };insted of
FB_RequireFeatures(["XFBML"], function(){ FB.Facebook.init("YOUR_API_KEY_HERE", "http://www.domain.com/fb_cb/1/fb_connect/receiver"); });Took me 2 weeks! Lol
..................
Oops well actually does Not work in IE. @()@(#, But it works inFIrefox