WordPress.org

Ready to get started?Download WordPress

Forums

Fotobook
Fix/Solution Found: Fotobook can't update Albums due to Facebook API deprecation (23 posts)

  1. Sebastian Csadi
    Member
    Posted 1 year ago #

    Hi guys,

    This bug is due to recent changes to the Facebook API. More specifically in concerning Fotobook among similar affected apps, as of the 1st of August 2012 the 'prompt_permission' endpoint(among others) has been deprecated, as described in the link below.

    http://developers.facebook.com/roadmap/completed-changes/

    Fotobook can access and get permissions regarding 'Basic Info' which seem to be done in Step 1 of the Fotobook Account Setup, but it fails at getting the 'photo' and 'video' access permissions which is attempted in Step 2. Hence the error you see on Facebook when attempting to complete Step 2 'Request Permissions' using WordPress Fotobook in the Fotobook Settings/Setup page:

    ERROR: This endpoint has been deprecated. To temporarily reenable it, you may disable the "august_2012" platform migration. It will be disabled permanently on August 1, 2012.

    I finally figured out a fix for this myself, based on the new way of requesting permissions using the Facebook API, described in the link below:

    http://developers.facebook.com/docs/reference/dialogs/oauth/

    Ideally, the changes should be implemented in the Fotobook Code, but given certain legal implications I'm not sure how feasible that would be, unless permission is granted by the Fotobook owner/developer.

    However, You CAN work-around this without getting into the code.

    Here is the Solution:
    Note: You might have to first remove your Facebook account from Fotobook, as well as remove the Fotobook App from Facebook, before you attempt the solution.

    1)Install latest version of Fotobook on your WordPress Host, making sure it has PHP 5

    2)Under Settings -> Fotobook in wordpress, Complete 'Step 1' of Facebook Account Authentication, closing the popup window when requested by the message displayed.

    3)Press 'Step 2: Request Permissions' button, which should take you to the Facebook popup with the deprecation Error. Close this popup window and immediately open a new tab in your browser. Paste the following url into the address bar of the new tab and press enter (I presume client_id and app_id are the same for you guys, since they correspond to Fotobook ID):

    http://www.facebook.com/dialog/oauth/?client_id=759543efe161e1085f7f6c97791e1eab&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fdesktopapp.php%3Fapp_id%3D759543efe161e1085f7f6c97791e1eab%26popup%3D1&scope=offline_access,user_photos,user_photo_video_tags

    4)You should now be able to allow Fotobook permissions to access your Facebook photos and videos by pressing allow.

    5)Go back to WordPress Settings -> Fotobook and complete the Facebook account setup by clicking on 'Step3: Apply Permissions' button.

    6)You should now be able to Import the Albums from your account, as expected.

    This worked for me. Let me know if you have any troubles with it.
    I haven't been able to find any other solution on the web, even though lots of people are having issues with it since the 1st of August.

    Best regards,
    Sebastian Csadi

    http://wordpress.org/extend/plugins/fotobook/

  2. kinkythought
    Member
    Posted 1 year ago #

    Thanks, this worked for me. Hopefully the plugin code will be updated.

  3. Taylor Baybutt
    Member
    Posted 1 year ago #

    Thanks for this, it does work. However, do you know how you would go about getting access to page albums again? I have one site where everything is still working but on another, I can only sync my personal albums. I tried adding the permission 'manage_pages' but that didn't do it.

    Thanks!

  4. jbjorgen
    Member
    Posted 1 year ago #

    Thanks. Used this tonight and it worked well. If you know the changes that would need to be made to the code, you could post something like:

    Line 64: replace

    myVar = x + 1;

    with

    myVar = y + 1;

    And then you wouldn't have to worry about legal implications because each user would be making their own changes.

  5. Sebastian Csadi
    Member
    Posted 1 year ago #

    @Taylor Baybutt
    I would have expected that simply editing the URL I posted, such that it contains the 'manage_pages' directive would work.

    Q1: Are you using the same Facebook account for both of your sites?
    Q2: Are you requesting the 'manage_pages' permission in both cases, or is it just in the second case?

    It could be that if you are using the same account for both, and you are only requesting 'manage_pages' in the second instance(the one not working), after having set the initial permissions already(video and photos), there might be a conflict between the two.

    In this case a quick workaround that should work would involve reconfiguring Fotobook and Facebook as I have outlined in my initial post, but this time requesting the same permissions(including 'manage_pages') for both of your sites.

    If this does not do it, please provide me with more info about your setup and what you have tried so far. I have since finished working on the site that used Fotobook, but I am willing to help you fix your problem.

    Best of luck,
    Sebastian

  6. Sebastian Csadi
    Member
    Posted 1 year ago #

    @jbjorgen
    I know the changes, but I have since finished working on that project and therefore need to dig them up from my documentation.

    I will post the fix with the code and comments as soon as I can. It shouldn't take long.

    Best regards,
    Sebastian

  7. jbjorgen
    Member
    Posted 1 year ago #

    Thanks Sebastian. I'll look forward to it. Then I won't have to find this thread again every time I need to re-establish permissions with facebook :)

    "The three great virtues of a programmer are laziness, impatience, and hubris" - Larry Wall

  8. yaldesign
    Member
    Posted 1 year ago #

    I still have problems with this. All works and when i go to upload my albums it says - No albums found. Can you help me ?

  9. karyyyn
    Member
    Posted 1 year ago #

    Yes, I have the same problem... No albums. Anyone have a solution?

  10. chavo
    Member
    Posted 1 year ago #

  11. dlambros
    Member
    Posted 1 year ago #

    I'm receiving an error with that URL too.

  12. maidanet
    Member
    Posted 1 year ago #

    I replaced the client_id and app_id in the URL with my App ID, and I'm getting an "500 Internal Server Error" when I go to it.

    http://www.facebook.com/dialog/oauth/?client_id=424878317577400&redirect_uri=http%3A%2F%2Fwww.facebook.com%2Fdesktopapp.php%3Fapp_id%3D424878317577400%26popup%3D1&scope=offline_access,user_photos,user_photo_video_tags

    Is there something else I'm missing? Do I need to put my App Secret in there somewhere?

    The website encountered an error while retrieving https://www.facebook.com/desktopapp.php?app_id=424878317577400&popup=1&code=AQB8Jo_nw33CMz2D-Qs61L8vh5SmNv9w66-tB4IZuZD9z8UXAkloCuxhSx8FvWcp_4U2_W5D-My5Vy8-agz21GRSNbTcWIa9_G6HJkmN5gVIQ49VPAYZpNY-QQhD6lOjoyr8dbr6Sh-djTP8nuoZbEGuGIYbIA2b0fAjPNXJtdFkzvxhRQwRQT3KB5E8DTJ0zl64VmNyX1JdQVmQyy-E8Y01#_=_. It may be down for maintenance or configured incorrectly.

  13. ariwinokur
    Member
    Posted 1 year ago #

    Broken again! Very frustrating! This is the exact plugin that I want. Anybody with the coding background want to take on the challenge of creating a replacement for this plugin?!

  14. ariwinokur
    Member
    Posted 1 year ago #

    Just found this website... http://blog.aaronharp.com/dev/wp-fotobook/

  15. chavo
    Member
    Posted 1 year ago #

    ariwinokur, that is plugin author's site. Is same plugin.

  16. ProFragger
    Member
    Posted 1 year ago #

    I got an error with the link too. Seems like the App is no longer on Facebook, at all!

    Can some brave soul take this development over from Aaron? On his site, he said he is alright with people taking it over, but you need to contact him for that.

    In the meanwhile, if you guys can PLEASE recommend another plug-in that works as CLOSELY AS POSSIBLE to Fotobook, then please let me know!

    I have tried SO MANY last night, and they just don't work :(...!

    Thanks again!

  17. Morlack
    Member
    Posted 1 year ago #

    The plugin will probably need to be rewritten as a whole..

    I'll do my best and try to recode it, I have some partners who'd like to see this plugin running again, and it'd be a great learning experience for me.

    Just hang on for just a little more ;)

  18. raffideuce
    Member
    Posted 1 year ago #

    I've been trying to mess around with this, no luck however. I would appreciate it if someone could take over this app and get it working. It is exactly what I am looking for.

  19. aaron_guitar
    Member
    Plugin Author

    Posted 1 year ago #

    Hello everyone,

    The trouble is that Facebook has really tightened down on how apps are allowed to integrate with their API. I will try to find some time to dig around their documentation and see if my current plugin is salvageable. Anyone else who might have some insight, please chime in.

    Aaron

  20. aaron_guitar
    Member
    Plugin Author

    Posted 1 year ago #

    Out of curiosity, what makes Fotobook better than a solution like the NextGen Gallery plugin? I no longer use Fotobook so I'm curious as to how much demand there really is for it.

  21. pleenhou
    Member
    Posted 1 year ago #

    @aaron_guitar

    Fotoboook has been by far the best solution for anyone who prefers to use Facebook for their photo and album storage/sharing and simply wants to display those photos on their personal or organization website.
    I use it on so many websites and I really haven't been able to find any other plugin or process that could recreate what Fotobook does.
    To give you a better idea, I run a website for an organization which has a presence on many different social media platforms. We have our event photos loaded on Facebook and with Fotobook there's no need to re-upload every set of photos to WordPress and to style the display, create new pages, etc. it's all done and in sync.
    It's fast, simple, and it works (or it used to anyways :)

    (note: I've been using Fotobook with the Modification For Fan Page and Group Photos)

  22. roycegracie
    Member
    Posted 1 year ago #

    @aaron_guitar
    i agree with @pleenhou,
    this is an amayzing plugin with a great flexibility.
    all i need to do is to tell my client to press one button and all of his photos are up.
    also, i would like to add the in my cuntry the hosting services give about 250 MB of storage and it's limiting the amount of photos the user can upload before he needs to pay more. with this plugin the problem is solved

    please fix the problem, for human kind and a better world :)

  23. chavo
    Member
    Posted 1 year ago #

    Why to use Fotobook? It is, by far, the best plugin to manage facebook photo albums.

    The plugin creates a page for each album with permalinks structure (seo friendly). Also, if you are web designer, you can integrate the look and feel of the albums with the look and feel of the site. You can also update albums at once and Fotobook creates the needed pages for you and is really easy to hide albums.

    I don't find all these features in any other plugins.

    Please Aaron, give the plugin a new try!

    ps: sorry for my bad english.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic