Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flickr-bundle for Symfony developers #67

Open
tacman opened this issue Jun 3, 2024 · 0 comments
Open

flickr-bundle for Symfony developers #67

tacman opened this issue Jun 3, 2024 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Jun 3, 2024

I create a Symfony bundle that makes installing and using this library very easy.

https://github.com/survos/SurvosFlickrBundle

The README shows how to create a Symfony application by simply cutting and pasting from the command line. The hardest part is setting up the API Key and secret!

However, the demo simply shows one of my albums. What would be much more interesting is to integrate the auth, but I'm stuck on #66

In addition to putting the api key and secret in environment variables, there are 2 twig functions that make getting the thumbnail and the photo page easy. Note that if you embed the thumbnail in a webpage, you are required (by their terms of service) to provide a link to the photo page on Flickr.

   {% set url = flickrThumbnailUrl(photo) %}
        <figure class="figure">
            <a href="{{ flickrPageUrl(photo) }}" target="_blank">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant