• Resolved kokonad

    (@kokonad)


    Hi! Great job on the plugin! I have posted before and both johneckman and bandonrandon have been very helpful with troubleshooting this plugin.
    I noticed that only the first facebook comment on my post was getting imported, so I set up the permissions all over again. I also realized that the infinite session key was different. So when I put the new key, the comments transferred. The infinite session key changed again, and here is how I figured out.

    Let me establish a time line here. I have adjusted them all to put them on the same time zone as the debug_wpbook.txt file (link below)

    Recent comments on facebook posted at:
    02:13 AM
    04:01 AM

    At 04:30 AM I realized that neither of the two comments were imported. When I looked at the debug_wpbook.txt, I saw that it was scheduled to import comments at 03:52 but it returned the error:
    Caught exception: Session key invalid or no longer valid Error code: 102
    Then I changed the wpbook settings (infinite session key) from WordPress again and it ran correctly the next cron-job, @ 04:54 AM, accurately importing the two new comments.

    For observation, I looked at the debug file again to see the reading for the next hour @ 05:54 AM, and it gave the same error as above, indicating a change in the infinite session key.
    Am I doing something wrong with the settings for WPbook here, or may be with the Facebook App, that is causing a varying Infinite Session Key?

    Here are some links:
    My Blog
    The post where this is happening
    My debug file
    The Facebook App page

    Is the comment import failing because the infinite session key keeps changing?

    I could provide more information if you like – my email is themattefinish [at] gmail [dot] com.

    PS: Here is an aside question – if I have set it up right, can this plugin import comments from BOTH a fan page and my user wall?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kokonad

    (@kokonad)

    Help? Anyone has any idea what is going on? 🙁

    Thread Starter kokonad

    (@kokonad)

    Ok so I figured this out! 🙂
    Turns out that my “infinite session key” was expiring every hour because it was of a format like this –
    2.PpBi6My_r2_pP34gdYk8g__.3600.1296471600-519325696
    That 3600 in the middle was a dead giveaway that it lasted only 1 hour. The last series is my profile ID.
    So I looked at my other blog which also uses WPbook but never gave this error and noticed that it had a format that looks like this –
    ebf556p3c5h578fh4jkd53afa0-519325696
    I realized that may be Facebook introduced extra security recently so I googled this problem up and looked at the results for last month only. I came across this German website on this WordPress forum – and found (on translation) that running this command in a browser while signed in on Facebook makes you PERMANENTLY signed in to the app (API key provided by you)
    http://www.facebook.com/code_gen.php?v=1.0&api_key=API_KEY
    This generates a 6 alphanumeric code which confirms your “permanent access” to the app for your profile ID.
    Then I went back to WPBook settings and clicked “Grant permissions for this user” VOILA I got a good looking INfinite Session Key as posted above!
    Johneckman, Bandonrandon – Could you please have a look into this? I believe it might be an additional step to your entire instruction list… or may be there is a workaround.

    @kokonad – thanks for the detailed info.

    How were you getting the “infinite session key” that you shared in the format with the .3600 in it?

    The way WPBook is supposed to work, if you click on the “check permissions” link inside the WPBook settings in WordPress, and then click on “Grant permissions for your userid,” you should get your blog reloaded inside the Facebook app, and at the top of the page is listed your infinite session key, in the correct format:

    Your infinite session key is d8028f412c87e2f669ac7f7b-1835518

    Was that not what happened for you?

    I’ll have to create another test blog and corresponding FB app to try it again – maybe it works for me because of how long ago the app was created?

    Thread Starter kokonad

    (@kokonad)

    Hi John! Thanks for getting back. I do believe it’s a new feature they have introduced for new apps. So I followed the instructions as you said. When i clicked the “grant permissions for your userid” link, the blog reloaded within the Facebook app and gave me the session key with the 3600 number. And it changed every hour.
    Now this had not happened with my other app, which was made much earlier (before September 2010 may be). This app was made for my other website much earlier and it works flawlessly. There, on the very first attempt I got an infinite session key that looked like
    d8028f412c87e2f669ac7f7b-1835518
    and it has stayed the same ever since.
    My new app for my photoblog was made in Nov/Dec or later, and I had to take these extra steps mentioned in my third post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WPBook] Comment import failing because of varying Infinite Session Key?’ is closed to new replies.