Topic-icon Facebook App using Joomla

Active Subscriptions:

None
12 years 1 month ago #20773 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi, sorry but following your tutorial this happens:
1. i have already "email,user_birthday,user_interests,user_relationships,user_activities,user_about_me" because i have setting this in JFBConnect control panel, in community builder tab

2. modifing the code ad you described the login button becomes just a text "Login with Facebook"

3. the facebook popup "allow" happens just clicking on the app (finding name on search) and not joining in the app from a facebook page which is connected with a button to the canvas page of the app like here www.facebook.com/bettinibio (look the green button "ACQUISTA PRODOTTI")

sorry for my pressing but if i will resolve this issu i will be happy to share, if you like the idea, my case study about SOCIAL/App:

best regards
The topic has been locked.
Support Specialist
12 years 1 month ago #20793 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
When you enable Authenticated Referrals, anytime a user visits your application page from a link originating on Facebook.com, the authentication popup will appear. It doesn't just work for Pages, but all links on Facebook. I'm not sure it's possible to only show the login popup automatically for users who are coming from your Page. There's no way to detect just that case within JFBConnect, and Facebook doesn't have an option like that either.

For #2, if the edit is causing the Login Button to change just to text, that likely means there's a Javascript error with the change I had you make. Can you link to the actual page from your site that is loaded so I can see the HTML code?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #20795 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
this is the link bettinibio.adgroupsolutions.com/
as you can see there's an issue about the login button and also with the request i have defined near it,
with original code in the file jfbcsystem.php the request is ok, and shows the popup with request

for other aspect about app button in the facebook page, i'm tring to set the canvas to a redirect.php and inside this page set a redirect to app adding the request user information like this

www.facebook.com/dialog/oauth/?
client_id=YOUR_APP_ID
&redirect_uri=YOUR_REDIRECT_URL
&state=YOUR_STATE_VALUE
&scope=COMMA_SEPARATED_LIST_OF_PERMISSION_NAMES
The topic has been locked.
Support Specialist
12 years 1 month ago #20805 by alzander
Replied by alzander on topic Facebook App using Joomla
Just looked over my code again. The last line is missing a closing parenthesis. Please add it so it looks like:
$subs .= "FB.Event.subscribe('auth.login', function(response) { 
              if (response.status === 'connected') { 
                   jfbc.login.login_button_click();
              } 
   })";
I also added a semi-colon to the end of the middle line. That shouldn't cause problems, but while you're there, might as well do it :)

Let me know how that goes. I'm sure there will still be minor issues to work through once that gets going, but we'll have to take it one step at a time.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #20818 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi this is the right code, you less a semicolon at the end :D
$subs .= "FB.Event.subscribe('auth.login', function(response) { 

              if (response.status === 'connected') { 

                   jfbc.login.login_button_click();

              } 

   });";

Tx for your help, in these days your replys were fast a completes, best regards
The topic has been locked.
Support Specialist
12 years 1 month ago #20840 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
No problem for the help. Sounds like it's working, but if you need anything else with this, just let us know. Definitely let us know how you put this all to good use, and consider posting it in our Showcase forum. We'll gladly help promote your stuff.

Finally, I also noticed your subscription just expired. We hope you'll consider re-subscribing again in the future!

Best of luck,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #20850 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi of course i will renew my subscription, for quality of your solutions and professional support.
Just a little issue about the code i used for aoutologin; it's perfect for Firefox, Chrome, Opera and Safari but on Explorer landing page has a Christmas tree effect, i mean continues to blink, like a continue refresh page. could you help me again?
try to open with Explorer the app link apps.facebook.com/bettinibio/

best regards
The topic has been locked.
Support Specialist
12 years 1 month ago #21002 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
Very sorry for the delayed response.

We just got to test with IE, and it seems that JFBConnect is not detecting that the user is logged in. However, the Facebook Javascript is constantly telling us that the user is logged in, which is then causing the code I had you add above (the FB.Event.Subscribe code) to trigger repeatedly trying to log the user in and reload the page.

Can you try adding updating the code from above (temporarily) to make sure that what I think is happening is correct. Simply add the following alert before the jfbc.login.login_button_click() call:
if (response.status === 'connected') { 
                   alert('logging user in');
                   jfbc.login.login_button_click(); 
}
If that shows the dialog box, that means that what I said above is right. If so, we'll need to understand why the user isn't logging in properly through the FB Canvas. If not, we'll need to figure out what else could be causing the redirect loop.

As a side note, I tried logging in on the raw page (not in an FB Canvas) at http://bettinibio.adg...com/, and didn't run into issues there. It definitely seems like something caused just when in the Canvas area.. but still not sure what exactly it is that's causing it.

Please let us know what happens when you add the alerts above. Also, sorry for the delay, but we'll be on top of this once you let us know any progress.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #21097 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi, yes, adding this code happens what you said: shows a popup with your text.
(now i hide this code to continue to use the app).
I hope to solve also for explorer, best regards
The topic has been locked.
Support Specialist
12 years 1 month ago #21245 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
We've been doing a bit of testing and investigation and have discovered a few things. I don't have an exact solution yet, but hopefully some of the details below will get you going.

1) We realized your Page Tab is loading socialapp.adgroupsolutions.com instead of the URL you specified above. If this is incorrect, let us know, but that's where all the testing I mention below comes from.
2) On that page, if you go to it directly with the secure URL of https, a lot of the content on there is loaded over http (non-secure). This isn't usually an issue with Facebook, but it seemed odd that some of the Javascript and even JFBConnect assets were loaded over http. Normally, those should take on the same 'scheme' (https) as the page itself.
3) Then, if I log in to that https page, I'm redirected to the non-secure home page. I'm correctly logged in, but I think this redirect to the http version of the page is what's causing Facebook to go into a loop. The page should be https, even if some of the images and assets on it are not secure.

Please see if you have an extension, .htaccess directive, or something else configured on your site/server in a way that's redirecting https traffic to http. When you find it, disable it, and see if that helps the redirect loop you're experiencing in IE.

Keep us posted,
Alex
The topic has been locked.