× Joomla Facebook Connect support forum

Topic-icon Posting to FaceBook

Support Specialist
15 years 4 months ago #7369 by alzander
Replied by alzander on topic Posting to FaceBook
Re- Re redirection - Let me know if you decide you can't live with something. There are redirection settings for user's logging in through Facebook and Joomla.. we think we have most bases covered, so maybe I'm missing something as to what's not working right. You should be able to send the user to the home page on logging out though.

The JFBCLogin looks to be working on those pages to me. If I go to that page and am not logged into your site, I see both the buttons. If I click on one, then I'm logged in and they dissappear. Currently, the {} JFBCLogin tag simply hides itself for users who are logged in. We'll be adding a way to show the Logout button in an upcoming release. Hopefully, that clears up the confusion, but if we're missing something here too, let us know :)

Best of luck, and let us know if you need anything else.. and definitely keep us posted with what you're coming up with. It's all looking good!
The topic has been locked.
Active Subscriptions:

None
15 years 4 months ago #7389 by bobmeetin
Replied by bobmeetin on topic Posting to FaceBook
Don't you love a spirited debate? Regarding JFBCLogin working, I see what's happening as the wrong behavior.

On the test page your Login module is in the left column. Folks who have logged in using Joomla Login should still have access to either JFBCLogin (Login through Facebook) or minimally the Reconnect Login Message as the Login module switches to which is the indicator that they're not really FaceBook connected.

In my case it will not be possible to place the JFBConnect Login module itself on the page, meaning the member would get confused and lost.
The topic has been locked.
Support Specialist
15 years 4 months ago #7399 by alzander
Replied by alzander on topic Posting to FaceBook
Regarding the JFBCLogin tag, we consider it a 'work in progress'. The Login tag was highly requested, so we squeezed it into the 3.1 release. We didn't add all the features we wanted to due to testing requirements. However, if you want to add the logout button, it's pretty easy (and similar to what we'll be doing). Edit the /plugins/system/jfbcsystem.php file, and at line 127, change the empty quotes (which are returned for registered users) to:
'<input type="submit" name="Submit" id="jfbcLogoutButton" class="button" value="Logout" onclick="javascript:jfbc.login.logout_button_click()" />'

If you're interested in making it into a link, instead of a button, you can check out the code in this handy-dandy thread:
www.sourcecoast.com/forums/topic?id=1672&p=1#p7013

This won't do the reconnect link, as that's a little tougher. In the 3.2 release we expect to have the logout button be an option for the tag, but I don't know what our syntax will be yet. When we do come out with 3.2 though, make sure you update your tag.

As always, hope this helps, and let the debate continue! :)
The topic has been locked.
Support Specialist
15 years 4 months ago #7401 by alzander
Replied by alzander on topic Posting to FaceBook
Actually, just re-read your thread, and realize you're not necessarily looking for the logout button. Etiher way, that block of code in the jfbcsystem.php may be exactly what you're looking for to put whatever you want whether the user's logged in or not. If you actually remove the $user->guest check, it will always show the button, logged in or not. If the user is Joomla logged only, it will reconnect/remap their accounts, but the text won't say "Reconnect", it will still say "Login with Joomla".

Hope this helps narrow down the place for some changes, but if not, let me know what you want the logged in behavior for Facebook users or Joomla-only users to be, and we can obviously get you there.

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

None
15 years 4 months ago #7409 by bobmeetin
Replied by bobmeetin on topic Posting to FaceBook
Aha! That last pointer seemed to help. I'll refrain from the ultimate judgment until some more thorough testing is behind me, but I edited plugins/system/jfbcsystem.php and made the change:

$fbLogin = ""; // return blank for registered users
TO
$fbLogin = "<fb:login-button v='2' onlogin='javascript:jfbc.login.login_button_click();'>Reconnect</fb:login-button>
"; // return blank for registered users

It not only displays the login ReConnect button but the Reconnect button works!

J.E.D. is on my list of action items, for you and a couple others. About a year ago I decided against writing reviews until the extension has had time to age. Why? I ran into some extensions that looked great out of the box, but both technical and support problems arose (no support, no response). However since you cannot add a second review or modify the original I'm sitting there with consternation on my face as I see the now erroneous smiling face review.
The topic has been locked.
Support Specialist
15 years 4 months ago #7412 by alzander
Replied by alzander on topic Posting to FaceBook
Glad to hear that's looking good for you.

We agree about waiting on reviews on the JED (and as developers, we don't generally leave them because it can cause us issues). Just so you know, though, you can actually contact the JED to update reviews from the past. I don't know how easy it is to do (heard it's not that bad), but if something out there has really annoyed you or some company dropped the ball, I'd get it changed. It's good for the whole community... unless you leave a good vote for JFBConnect, in which case then you're not allowed to change it... :)

Even if you don't review us, we'll keep up the support though, don't worry. There's no strings attached.

Best of luck to you!
Alex
The topic has been locked.
Active Subscriptions:

None
15 years 3 months ago #7738 by bobmeetin
Replied by bobmeetin on topic Posting to FaceBook
Over the weekend the function went live. I still have some refining in order, but otherwise it works. If you care to see the it in action visit www.unbridledrider.com, create a new account, sign in and visit My Log --> Lesson Log. Click on the small FB icon. You needn't continue unless you wish.

One thing that I think is potentially confusing is that a new member can sign in as any available username, then use the Facebook post function. To use the Facebook post function you just need to be signed into Facebook, seems like whether the usernames are really linked or not.

JFBConnect on the other hand seems to rely more on signing up and linking your username to Facebook username. So I guess a question would be what happens with members who sign up in Jomsocial/Joomla under one email address then use a second for Facebook? It can be confusing, but then that's my life.
The topic has been locked.
Support Specialist
15 years 3 months ago #7751 by alzander
Replied by alzander on topic Posting to FaceBook
That's pretty slick. I like the way that looks, very well done.

As for your other questions.. Regarding the FB post function, if you want to make it so only user's who are logged into Facebook AND have connected it to your site, you just need to update the getUserID call to look like:
$jfbcLibrary->getUserId(true);
That 'true' will get the User's FB ID only if it's connected to the user that's logged in. Hopefully, that will prevent the confusion you talk about.

Regarding what would happen if a user signs up regularly and then tries to log into with Facebook, there's a few options:
1) Enable the Automatically link user's by email - If set, and a user Logs In With Facebook, and their email address from FB is already in Joomla/JomSocial, the link will automatically be made without any further registration forms
2) Use the "Full Joomla User" option for User Creation. This will give the user the option to use an existing account to connect their Facebook account with

In either case, someone can create 2 accounts if they have 2 email addresses. This is something they can do in normal Joomla too, of course.

Hope this helps, but if not, where there is support required, I'll be there!
The topic has been locked.
Active Subscriptions:

None
15 years 1 day ago #10727 by dagofee
Replied by dagofee on topic Posting to FaceBook

alzander wrote: if you want to add the logout button, it's pretty easy (and similar to what we'll be doing). Edit the /plugins/system/jfbcsystem.php file, and at line 127....


line 315 in JFBConnect 3.3.1
The topic has been locked.
Active Subscriptions:

None
14 years 11 months ago #10920 by SOJIVE
Replied by SOJIVE on topic Posting to FaceBook
Does this work around still work? anyone... ;)
c
The topic has been locked.