Topic-icon Facebook App using Joomla

Active Subscriptions:

None
12 years 2 months ago #20463 by andbal1
Hi, i've created a Facebook app using Joomla and your fantastic tools, all is perfect but i need to realize the autologin; i try to describe my issue with these steps:
1. facebook user visits my facebook page
2. facebook user click on app button in my facebook page
3. facebook user leaves facebbok page to open my facebook app inside facebook
for now i need facebook user click again login button (SCLogin) to share his information and click again allow.
but i'd like
4. opening facebook app, shows popup about permission and user click finally allow

shortly... i need automatic opening of popup about Auth Dialog
The topic has been locked.
Support Specialist
12 years 2 months ago #20481 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
Interesting idea. Can you let me know if you use your website outside of just for the Facebook Page tab integration? I need to understand if you -only- want the popup to appear if they're coming from your FB Page or if you basically want the login to appear every time someone visits your page or not.

Also, what should happen if the user declines your login?

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

None
12 years 2 months ago #20511 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi Alzander you have quikly realized, i provide you more information:
1. i use joomla installation just for facebook page (for example to hide my website to Google i have modified robot.txt)
2. for now if user clicks on login Facebook (sclogin inside my app) and allow in popup, next time with he will be correctly identified, with Hello Name

so my real need is to pass authorization in the app button of my facebook page www.facebook.com/pages/Ad-Group/240912045957086
clicking on "Demo Applicazione" (for now sclogin is not active). maybe it is banal using facebook sdk but as you understand i didn't use it so maybe i have the issue for this reason but i think your tolls give me more more power ;)

PS. do you know also how I can find the specific urls of my app pages? i mean not the home, as you know surfing the app the facebook url doesn't change so i can't copy it.

many tx, best regards
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #20549 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Sorry, i didn't reply to your question about "user doesn't allow"
i'd like user simply go to facebook page,
i thought to do this using field "Callback di disautorizzazione" in advanced facebook app panel but
"Error
Callback di disautorizzazione cannot point to a Facebook domain."
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #20627 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
hello? any feddbacks? are you thinking about this or you advice me to change way? many tx
The topic has been locked.
Support Specialist
12 years 2 months ago #20629 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
Yes, thinking about this. Sorry, it was Friday night, so I didn't get back to you immediately. For critical issues with JFBConnect, we work through the weekend. For 'new' features or custom changes, we usually reserver those for Mon-Fri type support. I'd think we can get you an answer to test by Tuesday of something to at least try.. but it may need refinement once you implement it.

Thanks for your patience and further explanation. We'll get back to you soon. If you don't hear from us by Wed, feel free to post back here pressing for more info!

Alex
The topic has been locked.
Support Specialist
12 years 2 months ago #20732 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
We're going to have to take this in a few steps, to make sure we get it right.. but lets start and see how far we get.

First, I read what you're looking for again, and it's a little different then I originally anticipated. Since the user is staying within Facebook, I think you mainly want to enable "Authenticated Referrals". This is the system where any links on Facebook to your Application will force the popup. This is Facebook's system, so it's easy to setup:
* Go to your Facebook Application configuration area in developers.facebook.com/apps
* Go to Settings -> Advanced
* Set "Enhanced Auth Dialog:" to Enabled, if it isn't already
* Go to Settings -> Auth Dialog
* At the bottom, enable "Authenticated Referrals"
* For now, leave the other settings below at their defaults.

Now, please test the flow. When you click the App link from your page, the permissions popup should appear (if you haven't already granted permissions to the app). JFBConnect will -not- currently create the user from that popup, but we can set that up to happen easily once we're sure that the above is working right and how you'd expect.

Please test, and let us know!

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

None
12 years 1 month ago #20737 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi, tx for your reply, yes i need what you have described, i follow your tutorial but no automatic popup here.
when i enter in my app i just see the facebook login button (SCLogin) and if i want register to the app i need to click again. why?
i need to setting menu link as no public item but just for registered user?
i'm using integration with community builder and if i click on sclogin all is ok, i save user data but i'd like do this just showing popup and user allow
The topic has been locked.
Active Subscriptions:

None
12 years 1 month ago #20756 by andbal1
Replied by andbal1 on topic Facebook App using Joomla
Hi again, sorry, now it's ok, creating a new app, it opens the popup asking to allow. so this is ok, i need just to save data in community builder.

(maybe my last issue was connected to old version app)
The topic has been locked.
Support Specialist
12 years 1 month ago #20768 by alzander
Replied by alzander on topic Facebook App using Joomla
Andrea,
Great to hear you got it. We started doing some testing today with the authenticated referrals because we weren't sure why that wouldn't work.. now that it seems to be going, there's 2 more steps:
1) Make the following change the /plugins/system/jfbcsystem/jfbcsystem.php. Around line 167, you'll see:
if ($configModel->getSetting('social_notification_google_analytics'))
            $subs .= "\njfbc.social.googleAnalytics.trackFacebook();";
Add the following block right after that line:
$subs .= "FB.Event.subscribe('auth.login', function(response) {
              if (response.status === 'connected') {
                   jfbc.login.login_button_click()
              }
   }";
That should detect the user has just logged in to Facebook and run them through the JFBConnect login/registration process as well.

2) Once that works, you'll need to go back to the Authenticated Referrals settings and setup whatever permissions you'll need to request from the user. That's really easy to get from JFBConnect by simply loading the HTML of any page with the Login With Facebook showing. Look at the HTML and search for fb:login. You'll see a scope parameter. Simply enter all those fields into the Authenticated Referrals area of your Facebook Application.

Don't do step #2 until step #1 seems like it's working.. just less to go wrong.

Let us know how that goes!
Alex
The topic has been locked.