× Joomla Facebook Connect support forum

Topic-icon Auto logout my site when user never logout facebook

Active Subscriptions:

None
I found users would automatically logout, even though a user does not click the logout button and doesn't logout the facebook.
This usually happen when a user does not do anything for about 20 minutes.

Below is the setting of JFBConnect:
awesomescreenshot.com/0e77h9167

Is it the config problem or some other problems?

Thanks a lot=]
The topic has been locked.
Support Specialist
13 years 2 months ago #7547 by alzander
The automatic logout isn't caused by JFBConnect, it's done by Joomla. If you go to Site->Global Configuration and then the System Tab, you'll want to change the session timeout. By default, Joomla is set to 15 minutes, which means that after 15 minutes of inactivity a user will be logged out. We generally use a session time of about 2 hours on our sites, just so you know.

Hope this helps, and let us know if you have any other questions!
The topic has been locked.
Active Subscriptions:

None
Problem solved.
Thanks for your quick answer, Alex =]

By the way, I would like know would you consider add the image choice for the New User Status Message? And when would be the release date of next version of JFBConnect? Looking forward to it=]
The topic has been locked.
Support Specialist
13 years 2 months ago #7561 by alzander
We're shooting for March for 3.2 of JFBConnect. Images and a link parameter for status messages is planned in that release, actually, but it hasn't been implemented yet in our development trunk. I'm pretty confident it should be easy to add as we put support for those items to be included with the status messages in the last release, but didn't implement the configuration options to set them.

Glad to hear we helped with your issue, and let us know if you have any other questions!
The topic has been locked.
Active Subscriptions:

None
Actually, my site is going to have beta version next week, and I would have promotion mainly at facebook via the register message from users. I really need the image feature in register message.

If you don't mind, I could help test these feature in my site before the release of 3.2~~You could send me a private message if you think it should not be disclosed to the public.

PS: My site is at VPS and I have some knowledge in PHP programming and SQL.
The topic has been locked.
Support Specialist
13 years 2 months ago #7576 by alzander
I unhid your post and removed the link to your page. Hiding just makes it so guests can't see it, but any registered user can. Feel free to edit/delete anything you don't want shown. If it's private, send it via Private Message to us.

As for adding a link, image or other things to the post, try the code below. This will hard-code the link and image (or other fields) in any status messages.. which are on new user registration and login normally. If you want different fields for each case, just let us know (little more difficult, but not much). These settings are planned to be configuration options in 3.2.

Edit the file /components/com_jfbconnect/libraries/facebook.php. At line 383, make the following change:
if ($message)
{  
  $message = array("message"=>$message, "link"=>"http://sourcecoast.com/jfbconnect"); // ADD THIS
  try 
  { 
      if (is_array($message))

You can add any other fields you want to hard-code from the following page. Just by adding the link, Facebook will 'guess' the appropriate image from that page, but you can set it by using the picture field:
developers.facebook.com/docs/reference/api/post

Make sure you look at the "Publishing" section about half way down the page.

Let us know how that goes.. we definitely like this feature too :)
The topic has been locked.
Active Subscriptions:

None
I have just tried it but seems no change for the message.
see: awesomescreenshot.com/0b57mb63a

In facebook.php, I change the the following part (not located at 383 line)
function setFacebookMessage($message)
    {
        if ($message)
        {
			//Anson: Add status image and link
			$message = array("message"=>$message, "link"=>"http://www.kingsdb.com", "picture"=>"http://www.kingsdb.com/images/stories/kingsdb/logo.png");
            try
            {
                if (is_array($message))
...................

Do you have idea why it's fail?

Thanks Alex=]
The topic has been locked.
Support Specialist
13 years 2 months ago #7595 by alzander
Couple ideas. I know the first time I tested that minor change, it didn't work. Easy first, try to do it again now that you've waited an hour :)

2nd, delete any recent posts in your feed that have the same message "I just registered..". Facebook won't usually post the same message twice, so it may just be ignoring your last message. If that doesn't work, put another post in your feed just so it changes things up.

Finally, if none of the above, try taking out the picture link. When I tested, I just used the link field, and no picture. Shouldn't be a problem, but testing with that never hurts. You can also even try the exact link I used above (sourcecoast.com/jfbconnect). It definitely worked and it pulled the logo from that page automatically.. worth it just to see if that works for you, and then we can go from there.

Good luck!
The topic has been locked.
Active Subscriptions:

None
Hi Alex, I have tried the above 3 methods but seems all of them cannot have solve the issue.......

I would is it caused by the config. of the app. in facebook?
I just added domain to my app. Do I need to add photo/icon to it? Any other config is necessary?

Thanks for your answer.
The topic has been locked.
Support Specialist
13 years 2 months ago #7619 by alzander
There's nothing in the application configuration that should affect this. If you revert the change, does the 'standard' new user or returning user message show up? All I can think of is that the publish permission isn't set for the user you're testing with.

The app link or image doesn't need to be set in the application, since you're setting it manually.. that way, you can use unique links and images for each page on the site.

If that doesn't work, I'd have to look into your site configuration or the modification you made more. If you want to PM me some site credentials, I can do that over the next day or so.

Thanks!
The topic has been locked.