• Index
  • » Users
  • » playak
  • » Posts

Posts

Posts

Feb-22-13 03:36:55
How to avoid Bad Signed JSON signature errors
Category: JFBConnect

Glad I asked current/smile Thanks for the super feedback.

I use this on Facebook-framed app pages, so I'm not sure if I should give this back to the JFBC app after doing my app things, like you proposed. Or is this required to keep things working for other browser windows in the same session?

Feb-21-13 11:10:52
How to avoid Bad Signed JSON signature errors
Category: JFBConnect

I'm using the JFBC libraries in a couple of my own components to make API calls, FQL queries etc. Works great.

However I want to take it one step further and even use the same libraries for a couple of Facebook apps that have a completely different appid and secret. Right now I'm getting the 'Bad Signed JSON signature' errors on those pages, and I assume that's because of the wrong appid. Any ideas on how I can make those apps use the correct appids and secrets? JFBConnectFacebookLibrary::getInstance(); doesn't take any parameters...

Thanks for ideas,
Jeroen

Feb-08-13 23:03:02
[email protected] in e-mail field
Category: JFBConnect

I love the support here. You should consider showing a Like button underneath each support thread. I would click it again today if that would help you current/smile

Feb-08-13 11:01:28
[email protected] in e-mail field
Category: JFBConnect

Thanks. I walked through the connect process myself this morning and didn't even find that option current/wink

I also tested sending an HTML mail to such an address, proxying to my own real address. The annoying thing about that is that the Facebook proxy removes all links from the mails. We use the addresses for a mailing list, and our mails always has a small one-click unsubscribe link at the bottom. The proxy unlinks that link, and put its own 'unsubscribe' link underneath. If people click that, my system will of course keep sending them mails, so I'm afraid FB may consider it spam at one point.

Pretty annoying. I wish we could enforce people to connect with their real e-mail address. I think there was an extended permission for that at one point, but can't remember for sure.

Anyway, thanks for your help Alex.

Feb-08-13 04:00:03
[email protected] in e-mail field
Category: JFBConnect

today i got a new user registration with an e-mail field (real data replaced with xxxx):
[email protected]
Never saw that before. I'm worried that I'll have problems when sending HTMl formatted system mails to this user...
The irony is that this user has his real e-mail address in the username field...
Any thoughts on why this happened, how I can avoid it, and what will happen to HTML system mails sent to such an address?

Cheers,
Jeroen

I just upgraded Joomla to 2.5 (started back in the Mambo days). When the site came back online and the first user registered through JFBC, an admin mail got sent to 6000 regular users! Very bad for my reputation and I had a lot of angry mails to answer current/sad

I assume the sendEmail field in the jos_users table was used for something else in the past. For an unknown reason, some 6000 of my user accounts had it set to 1. This could have been avoided if JFBC would respect the mail_to_admin parameter of com_users, which I have set to 0.

I'm generally happy with JFBC, but this was a really bad experience, so I wanted to let you all know. Until SC checks the mail_to_admin parameter, all people who do a Joomla upgrade should better double check the values of sendEmail field in the user table.

Great and fast support as always - Thanks Alex.

Looks like my site keeps forgetting that I was logged in. I always use the 'Remember me' checkbox, but that one probably doesn't play a role when logging in with FB. Why does this logged-in status disappear (typically overnight), although I am still logged in to Facebook?

PS I use Joomla 2.5.7, JFBC 4.3.4, and the SClogin 1.1.5, Auth plugin 4.2.0, and jomsocial.

I managed to get the events list by using the graph API now: trick is that you have to use use me/events/not_replied as well as me/events/maybe and me/events/attending to get the full list.

Strange thing is that I still cannot get any results by using FQL. I just get an empty array by doing this:

Code:


    $fq = "SELECT eid, name, pic, creator FROM event WHERE eid IN (SELECT eid FROM event_member WHERE uid=me())";
    $fbparams = array('method' => 'fql.query', 'query' => $fq);
    $events = $fbclient->api($fbparams);

Also, I still get the COM_JFBCONNECT_FB_API_ERRORparameters uid or session key required errors, and the Facebook connection keeps disappearing every hour or so, also I stay logged in on the Joomla side as well as on Facebook.

Loads of work - pretty annoying.

Cheers,
Jeroen

Thanks for that idea Alex. It seems to make things worse though. In my component, I call:

$fbclient->getMappedFbUserId();

And after doing your proposed mod, that function returns an empty string instead of my Facebook userid.

Thanks. I turned on the output of error message and get the message:
COM_JFBCONNECT_FB_API_ERRORparameters uid or session key required
Would that help solving it?

I used to have access to loads of FB info from my own component, using the JFBC libraries. Looks like it stopped working earlier this month. Did something on the FB side change?

For instance, I used to use:

Code:


    $events = $fbclient->api($fb->user."/events");
    $events = $events[data];

or even better (more details):

Code:


$fbparams = array('method' => 'events.get', 'start_time' => strtotime("-1 day"));
$events = $fbclient->rest($fbparams);

Since about a week or two, all I get in return is an empty $events array.

Anybody any clues or examples on how to get this working again?

Cheers,
Jeroen

thanks alzander. i wasn't aware of that. in the (artisteer) templates i use, empty modules automatically disappear, which i find handy, and logical current/smile

thanks. my proposal that that i don't have to change any templates at all. i.e. i just switch off all module output options in the backend, and then it results in an empty module, which means that joomla will not show the module at all. a lot easier than having to change a template after each update...

hmm, looks like this parser eats the html div elements in my code. anyway, hope you get the idea.

i clean up the template for mod_jfbclogin after every upgrade. would be cool if you could do it in the distribution. my problem is that I don't want to show anything to logged in users (i use a different module for that), so i disabled profile picture, powered by etc in the module settings, but it still contain an empty div element and a couple of linebreaks, so the module still shows up, it just looks empty. solution is simple: change

Code:



get('showGreeting');
    $greetingName = $params->get('greetingName');

    if ($showGreeting)
    {
        if ($greetingName == 0) //Username
            $name = $user->get('username');
        else
            $name = $user->get('name');
        echo JText::sprintf('MOD_JFBCLOGIN_WELCOME', $name);
    }
?>

to

Code:


        $showGreeting = $params->get('showGreeting');
    $greetingName = $params->get('greetingName');

    if ($showGreeting)
    {
        echo "";
        if ($greetingName == 0) //Username
            $name = $user->get('username');
        else
            $name = $user->get('name');
        echo JText::sprintf('MOD_JFBCLOGIN_WELCOME', $name);
        echo "";
    }

and clean up some line breaks between closing and upening php tags.

thanks,
jeroen

I got tired of being redirected to the front page on auto-login, so I changed one little line in components/com/jfbconnect/libraries/facebook.php:

//                          $redirect = JRoute::_('index.php');
                            $redirect = JRoute::_($_SERVER['REQUEST_URI']);

Seems to work fine and I consider it a big improvement, so hopefully you guys can build it into a next version. I'll watch it in action to make sure it doesn't create loops or have other undisirable side effects, but it think it should be ok. If not, I'll report it here.

Cheers,
Jeroen

May-16-11 11:54:30
feature request to set Default extended permissions in backend

In modules/mod_jfbclogin/tmpl/default.php, I added one line, and changed 2 other lines, as below:

Code:


            // joempie added $perms, also echo twice after v="2" below
            $perms = 'perms="'.$fbClient->configModel->getRequiredPermissions().'"';
            if (!$mappedUserId)
            {
        ?>
        <div class="fb_connect_user"><?php echo JText::_('Connect User'); ?></div>
        <fb:login-button v="2" <?php echo $perms;?> onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('MAP BUTTON'); ?></fb:login-button>
    <?php } else if($params->get('allowReconnections') && $mappedUserId != $fbId){ ?>
        <div class="fb_connect_user"><?php echo JText::_('Reconnect User'); ?></div>
        <fb:login-button v="2" <?php echo $perms;?> onlogin="javascript:jfbc.login.login_button_click();"><?php echo JText::_('REMAP BUTTON'); ?></fb:login-button>

Seems to do the trick...

May-16-11 08:22:08
feature request to set Default extended permissions in backend

Thanks Alex.

1. Not many Facebook accounts are new, so I changed this in my language file to just ask 'Reconnect to Facebook account?' instead of '... new Facebook account'. Just makes more sense I think.

2. Will be a lot less confusing if the same permissions are asked for each time. I'll hack this into my login module right away, would be great if it were standard behavior in the next official version.

Cheers,
Jeroen

I noticed that if a user is blocked in Joomla, clicking the Connect button can result in an infinite redirect loop. Happens in different scenarios, e.g. when first autodetecting the user id by means of the e-mail address, or when the accounts are already connected.

Proposal: whatever JFBC does with records from the jos_users table, it should only ever consider records that have the block field set to 0.

May-16-11 02:03:13
feature request to set Default extended permissions in backend

Good stuff. There is still an error. If a user removes all app permissions on the FB site, the JFBC login module ask to 'Reconnect this site to the new Facebook account?'.

This is strange already, as the Facebook account is not new at all.

But what's worse, if the user then clicks to reconnect, only basic permissions are asked for, so the required extended permissions will not be restored.

Using J1.5.23. JFBC 3.2.1, JFBCLogin 3.2.1.

Dec-05-10 14:16:58
feature request to set Default extended permissions in backend

It would be great if we could set the required minimum default extended permission in the backend. i built a component that uses the connection made by jfbconnect, but since my component does a lot more than logging in (e.g. photos and events synchronisation), and I prefer to ask for those permissions only once, I changed a line of code in libraries/facebook.php:

Code:


        $mainPerms = "";
        // joempie added next. see http://developers.facebook.com/docs/authentication/permissions
    $mainPerms .= "user_events,user_hometown,user_website,user_website,user_status,user_photos,user_videos,user_about_me,user_activities,create_event,rsvp_event,user_groups,";

would be better if I could set that list from the backend somehow.

cheers,
jeroen

brilliant. disabling remember me is not an option for me. the other trick helped. now let's just hope there are no weird side effects current/smile

any progress on helping me solve this?

Thanks Alzander.

you have to be logged in to reproduce the problem, so I just PM'd you the login details for a test account.

It looks like jfbconnectuser fires way too early. It also happens in Firefox, but the effect is different. In Firefox, the result is a CSS problem: part of the text shows very large. But the cause is the same: jfbconnectuser pumps out that javascript before the html.

Any help would be mcuh appreciated!

Cheers,
Jeroen

  • Index
  • » Users
  • » playak
  • » Posts

Board Info

Board Stats
 
Total Topics:
11405
Total Polls:
0
Total Posts:
48071
Posts this week:
8
User Info
 
Total Users:
47248
Newest User:
kafeti
Members Online:
0
Guests Online:
727

Online: 
There are no members online
Social Stream
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program