API Facebook pour afficher un album

Réduire
X
 
  • Filtrer
  • Heure
  • Afficher
Tout effacer
nouveaux messages

  • API Facebook pour afficher un album

    Bonjour,
    je me retrouve bloqué avec l'API Facebook. J'essaye d'afficher sur mon site Joomla un album photo de ma page FB :
    https://www.facebook.com/pg/CFCO2019/ph ... 8992769428

    J'ai essayé plusieurs extensions mais à chaque fois je bloque sur la configuration de l'API Facebook j'ai l'impression
    Par exemple avec l'extension PHoca Gallery qui me paraît pas mal, j'ai suivi leur tuto :
    https://www.phoca.cz/documents/2-phoca- ... ook-albums

    Mais ça ne marche pas, j'ai une erreur quand je clic sur le bouton "Login - Connect with Facebook" dans l'onglet "Facebook Settings" de l'extension.
    Le message est :
    Erreur
    Warning
    Invalid Scopes: publish_actions. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/fa ... ermissions
    Si jamais vous avez une idée je suis preneur !!!!
    Merci d'avance

  • #2
    Bonjour,

    Au niveau de l'API facebook, je ne vois pas d'option pour récupérer un album : https://developers.facebook.com/docs...ns/page-plugin

    Où avez-vous vu cette possibilité ?

    Dans le plugin UP, avec Loïc (alias Lomart), nous avons implémenté l'affichage de la 'timeline' Facebook en nous basant sur cette API : http://up.lomart.fr/demo/action-facebook-timeline

    Pascal
    If anything can go wrong, it will...If I can help, I will ..https://conseilgouz.com

    Commentaire


    • #3
      Merci de votre réponse. A priori ici :
        This feature is not more available in Phoca Gallery.   In Phoca Gallery you can display images from your Facebook albums. What are the requirements to display the albums:   Facebook account PHP function json_decode and cUrl enabled on your server  If your server meets the requirements, go to Components - Phoca Gallery - Control Panel, click on Options and set Enable Facebook Image Loading parameter to Yes .   If you want to display Facebook albums on your site, you need to create a Facebook Application in your Facebook account. This application is needed to communicate between your Joomla! site and your Facebook account. It will be your application so you will know, such application is secure and don't download your Facebook data into another page.   Facebook Settings Login to Facebook Go to "Create an Application" site - https://developers.facebook.com/setup/ Add site name Add an URL of your site Select language which your site is using Create an application - App Name, App URL, App ID and App Secret values will be created. Copy App ID and App Secret value.   Example: Phoca Gallery 4.2.2, creating Facebook application, API version 2.5     Phoca Gallery Settings Be sure, Enable Facebook Image Loading parameter in options is set to Yes. Go to Components - Phoca Gallery - Facebook, click on New. Add App ID and App Secret. Click on Save button . Connect with Facebook, login to your Facebook account. After successful login you will need to allow that your application can access your data. Then the page will be redirected back to the site where the parameters are listed. New button Paste Loaded Data will appear. Click on Paste Loaded Data button. Now parameters will be filled. Click on Save & Close. Go to Components - Phoca Gallery - Categories. Click on New. Navigate to bottom of the site and select Facebook User and Facebook Album.   Click on Facebook Import button to import all images from the Facebook Album.        Now all the images should be imported to Phoca Gallery.       Phoca Gallery and Facebook Fan Page Images can be imported/exported from/to Facebook fan pages too. If you want import/export images from/to facebook fan page, just follow guide above, but: create two different accounts First - standard Facebook user account Second - Facebook user account with added fan page information . Just paste loaded data with clicking on button and change Name parameter and add Fan Page ID parameter , see image:     Now, you have two Facebook accounts in Phoca Gallery: First is your standard user account, second is your fan page account - both can be used while importing or exporting images from/to Facebook . Just switch Facebook User parameter in editing of Phoca Gallery category.    Facebook uses specific sizes for displaying images and thumbnails, for example:   Small thumbnail: 75x x 50px Medium thumbnail: 130px x 87px Large thumbnail: 720px x 482px   If the size of thumbnail or image is different from Phoca Gallery settings, then Phoca Gallery will try to correct the size. If you will use Phoca Gallery for displaying Facebook images, it is recommended to use the same size of thumbnails for Phoca Gallery which is used in Facebook. You can set the background images to fit Facebook size. See Styling Background Images article.    If you get following error: Session has expired then it means, stored session on your server expired. You need to go to: Joomla! administration - Components - Phoca Gallery - Facebook and click on edit current account. Login again to Facebook and paste loaded data - to refresh stored session. Importing large albums from Facebook can be time and memory consuming. If you will get problems while importing, try to enable PHP error reporting on your server to get information about possible problems.      


      Je ne sais pas trop pourquoi je n'arrive pas à me logger dans le composant. Après leur tuto était à priori sur une ancienne version de l'API.

      Commentaire


      • #4
        Sur le JED, j'ai trouvé une extension qui semble fonctionner (elle a été mise à jour en 2018) : https://extensions.joomla.org/extens...-photo-albums/

        Je n'ai pas essayé.

        Pascal
        If anything can go wrong, it will...If I can help, I will ..https://conseilgouz.com

        Commentaire


        • #5
          Sur l'extension proposée, son développeur, Ed, semble en avoir assez des changements perpétuels de l'API facebook, donc, cela devrait fonctionner, mais, ce n'est pas garanti dans le temps.

          Il s'agit de sa version "finale", dans le sens où il arrête sa course à la modernité.

          Pascal
          If anything can go wrong, it will...If I can help, I will ..https://conseilgouz.com

          Commentaire


          • #6
            Merci.

            " Facebook Photo Albums v2.0.0-FINAL is the last release of this extension. Due to the ever changing Facebook API landscape, this extension and my time keeping up with Facebook's API changes have reached it's 'End-Of-Life'! The current release v2.0.0 has several pre-populated Facebook Access Tokens to choose from. However, one by one each selection will stop working. If you have tried all of these selections and still can't get this extension to display, PLEASE uninstall Facebook Photo Albums and start searching for a replacement. SORRY!

            "

            Mais pour l'instant ça marche

            Commentaire

            Annonce

            Réduire
            Aucune annonce pour le moment.

            Partenaire de l'association

            Réduire

            Hébergeur Web PlanetHoster
            Travaille ...
            X