WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Album
HTTPS (14 posts)

  1. TNELN
    Member
    Posted 1 year ago #

    My site uses HTTPS: can I modify the code so that the plugin retrieves photos from https?

    http://wordpress.org/extend/plugins/facebook-albums/

  2. TNELN
    Member
    Posted 1 year ago #

    Can I use a php function to convert http:// to https:// ?

  3. TNELN
    Member
    Posted 1 year ago #

    Could it be problem with Facebook API?

    I hade to change the adresses to albums and photos, but I don't think this is the right solution.

    public static function _clean_url( $url ) {
    return str_replace('.ak.fbcdn.net', '-a.akamaihd.net', str_replace('http://photos', 'https://fbcdn-sphotos', str_replace('http://sphotos', 'https://fbcdn-sphotos', str_replace('&', '&', $url))));
    }

  4. mglaman
    Member
    Plugin Author

    Posted 1 year ago #

    Hi sorry I haven't been responsive - major projects going on at work - the plugin doesn't retrieve https plugins because it is accessing the Facebook API. I wasn't aware of this, I thought it always did https.

    Looking at the API it seems that you cannot retrieve https images unless authenticated with the API. By simply adding https isn't working either, as its pulling from a non-secure CDN.

    My goal is to attempt a coding sprint to make this plugin authenticate with Facebook (by end user creating a Facebook app and copying their consumer secret/key.)

    If this is a feature you'd really like to see, I'll do my best. A donation could be motivation as well to knock this out. http://glamanate.com/wordpress/facebook-album/

  5. TNELN
    Member
    Posted 1 year ago #

    Thanks for your plugin!

    You mean access token? yes indeed I have tried other plugins with tokens, they all work without any problems with HTTPS. But I just don't want to modify the CSS to much (I don't think I did that with your plugin).

    If you can make the plugin authenticated then it would be perfect! just make sure we still can choose albums or at least the pages that we administrate.

  6. mglaman
    Member
    Plugin Author

    Posted 1 year ago #

    I made a draft over the weekend, but things at work have picked up and I need to do a bit of debugging still.

    Right now the plugin will require you to create an app on Facebook & copy its App ID & Secret. Therefore it authenticates to you & anything you have access to (pages)

    Does this sound like it would suffice in your opinion?

  7. TNELN
    Member
    Posted 1 year ago #

    I only need the plugin to pull photos through HTTPS.

  8. mglaman
    Member
    Plugin Author

    Posted 1 year ago #

    Please update to 2.0 of the plugin. You'll have to set up a Facebook app, but you can now resolve any secure connection issues.

    This is the only way to have Facebook return with secure connection images.

  9. TNELN
    Member
    Posted 1 year ago #

    /NNNNNNNNNNNNNNNN?fields=id,name,photos.limit(10).fields(source,link,images,name)

    is showing in front of photos.

    any fix?

  10. TNELN
    Member
    Posted 1 year ago #

    Besides some photos ares still not pulled from HTTPS.

  11. mglaman
    Member
    Plugin Author

    Posted 1 year ago #

    Try giving the plugin a re-install, or manually edit main plugin file and delete 'echo $api_call' from code, apparently that slipped by me.

    Are you using the plugin through a Facebook app? If so, then I'll debug the HTTPS issue.

  12. TNELN
    Member
    Posted 1 year ago #

    It would be nice if you make an update to remove "/NNNNNNNNNNNNNNNN?fields=id,name,photos.limit(10).fields(source,link,images,name)", if you release an update soon there is no reason for me to edit the plugin.

    Am am using Facebook app, the problem is that some photos doesn't show up, and when using Firefox or Chrome HTTPS doesn't work properly, dev-tools showing photos have HTTP-adresses.

  13. TNELN
    Member
    Posted 1 year ago #

    2.0.2: Photos still not from HTTPS:

  14. TNELN
    Member
    Posted 1 year ago #

    When I use Facebook app some thumbs doesn't show up and others are from HTTP and not HTTPS.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.