Coder Social home page Coder Social logo

Comments (15)

timracer avatar timracer commented on May 28, 2024

solved)

from facebook-album-browser.

dchicon avatar dchicon commented on May 28, 2024

How did you solved? Thanks

Enviado desde mi iPhone

El 9/9/2015, a las 7:44, timracer [email protected] escribió:

solved)


Reply to this email directly or view it on GitHub.

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

just comment this

for (i = 0; i < $(cover.images).length; i++) {
if (
($(cover.images)[i].height &gt;= prefHeight &amp;&amp; $(cover.images)[i].width >= prefWidth) &&
($(cover.images)[i].height &lt;= albumImg.height &amp;&amp; $(cover.images)[i].width <= albumImg.width)
) {
albumImg = $(cover.images)[i];
}

and this

for (i = 0; i < $(result.data)[a].images.length; i++) {
if (
($(result.data)[a].images[i].height &gt;= prefHeight &amp;&amp; $(result.data)[a].images[i].width >= prefWidth) &&
($(result.data)[a].images[i].height &lt;= albumImg.height &amp;&amp; $(result.data)[a].images[i].width <= albumImg.width)
) {
albumImg = $(result.data)[a].images[i];
}
}

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

but I still cannot get image in full resolution into lightbox :(

from facebook-album-browser.

dejanstojanovic avatar dejanstojanovic commented on May 28, 2024

Debug traffic in your browser with Firebug.
You will see the response of the Facebook API.
Check the URLs in JSON the response for images and if it is provided by API than it will be there.
If it is there just rename tr property in code for lightbox. Let me know if this was helpful for you

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

ok, I will try

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

nothing) I guess I couldn't solve it

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

And I want to try to use this https://github.com/brutaldesign/swipebox instead of lightbox. According to me it will seems so elegant with your great plugin

from facebook-album-browser.

dejanstojanovic avatar dejanstojanovic commented on May 28, 2024

Should not be that hard to add it. I created this lightbox behavior as I did not want to import some existing plugin and make it to heavy :)

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

Anyway your plugin is very helpful and useful to much people and me!

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

Hi @dejanstojanovic! I cannot change image resolution to full resolution into lightbox.

in html structure

a href="https://fbcdn-photos-f-a.akamaihd.net/hphotos-ak-xpf1/t31.0-0/p480x480/11224645_142112549466766_7606228923777598231_o.jpg"

but

img src="https://scontent.xx.fbcdn.net/hphotos-xpf1/t31.0-8/11224645_142112549466766_7606228923777598231_o.jpg"

So thats why lightbox opens 480px image (/p480x480 in the middle of the link). Tell me please how to change <-a-> link?

from facebook-album-browser.

dejanstojanovic avatar dejanstojanovic commented on May 28, 2024

Check method loadPhotos, it loops through images attached to photo. Add a simple condition which will find the largest image (check width and height of the returned object) and use the source property.
Please check this and let me know if you managed to do anything.
I'm currently a bit busy, so I cannot be more specific where exactly to make the change to make it work :(

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

ok

from facebook-album-browser.

dejanstojanovic avatar dejanstojanovic commented on May 28, 2024

I saw you closed the issue. Did you find the solution?

from facebook-album-browser.

timracer avatar timracer commented on May 28, 2024

I didn't

from facebook-album-browser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.