Facebook generator

Facebook has a lot of limitations related to their APPs and here is a list of them: 
  • You need PHP 5.4 or a higher PHP version. 
  • You need to have a HTTPS website, so an SSL certificate is required on your site. 
  • You need to submit your App for review. This means you need to write a reasoning why do you want to ask down those Facebook datas you want to show and people at Facebook will decide wether you can use your application or not. This can take time. 
  • You need to manually request a new token in every two month. As you see at step 16., our system will write out when that two month ends to help you track it.
This dynamic slide generator is available in the PRO version only.

Tutorial

  1. Create an application at facebook.
  2. Give your APP a Display Name, click on Create App ID and pass the security check.

  3. At the Add a Product choose Facebook Login.

  4. Choose Web as the platform.

  5. Write your website's URL into the Site URL.

  6. Go to our admin area Settings -> Facebook generator and copy out the Callback url.
  7. At your App go to the Settings menu (under the Facebook login menupoint). Insert the Callback URL from Smart Slider 3's backend to the Valid OAuth Redirect URIs field.

    Click Save changes at the bottom right corner.

  8. Head to the main Settings (under the Dashboard menupoint). Write your website's address into the App Domains and into the Privacy Policy URL you should write an url, where the privacy policy of your website can be seen, which would tell users what will happen to their datas. (You don't need a very serious privacy policy page, probably it isn't even checked by anyone, so you could simply enter the homepage address here too.)
  9. Go to App Review and make the application available for the public.
  10. Click on the Start a Submission button.
  11. If you are planning to use our Photos by album generator, choose the user_photos. If you are planning to use the Posts by page generator, choose Page Public Content Access.
  12. Add details to why you want to request the given datas and you will have to wait until Facebook approves these submissions!
  13. Once everything is fine with the App, go to the  Basic Settings and copy your App ID and App Secret.

  14. Paste them into our back-end to the  Global SettingsFacebook generator. (Make sure that you don't have any empty space characters in the end or beginning of them.)

  15. Click on Request token, and agree, that the api will use your account.
  16. After this the token will appear in your backend, and you can move on to work on your slider.

    Facebook has a limitation, that you need to request a new token in every two month, and this cannot be done with a code, because the user interaction is needed at the agreement window, so you will have to request a new token in every two month (or sooner). Until then your slider will show the last slides it could create before the expiration. To help you keep track of this expiration time, you can click on the bell icon here at the Facebook settings, and you will see when it will happen.

  17. Now the api is done and you can create a new slider or use an existing one.

  18. Choose to give dynamic slides to your slider.

  19. Pick Facebook and either photos by page or posts by page.

  20. Set up your generator, pick an album or page, change the number of slides to how many do you want to be in your slider, change the cache expiration to the time you want your slider to look for new data, and if you want to, you can check, what will be on your slides in the record viewer.

  21. Now you can start working on how your slides will look with the datas of the first slide. You can put down layers, and use the VARIABLE signs to put that data inside them, what you want there to be.

  22. If something is not clear, check out how the dynamic slide generators work.

Filter

Photos by album
  • Album - A User or page option, where you can give a username, or the name of a facebook page, and an Album option, where you can select either a facebook album, or the timeline photos. 
  • Posts by page
    • Page - The name of the facebook page, from where you want to show the posts.
    • Type - You can choose to either show the posts, or the feed of that page.

    Variables

    Photos by album
    • image - The link of the image.
    • thumbnail - The link of the image's thumbnail.
    • title - The title of the image.
    • description - The description of the image.
    • url - URL to the image.
    • author_url - URL to the author of the image.
    • likes - Like count of the image.
    • icon - Facebook's image icon.
    • picture - Small version of the image.
    • source - Medium version of the image.
    • imageX - Different sizes of the image.
    Posts by page
    • link - Link to the post.
    • description - The text of the post.
    • type - The type of the post, if it has an image, it's image type, if it has a video, it's video.
    • image - The image of the post.