kk Star Ratings
Integration with Facebook (3 posts)

  1. Zarce Baron
    Posted 4 years ago #

    Hi! I love this plugin!

    I would like to know if there's a way to integrate de votes with Facebook login. I need to allow users to rate the post only in case they're logged in on Facebook.

    Is it possible?



  2. Kamal Khan
    Plugin Author

    Posted 4 years ago #

    That is possible but something out of the box. This is custom work I am afraid :(

  3. Volzy
    Posted 4 years ago #

    You can do a simple check if user is logged in with Facebook via the Facebook API and then display the specific kk star ratings-shortcode to those users.

    Using the Facebook PHP SDK:

    if ($session) {
      try {
        $me = $facebook->api('/me');
        if ($me) {
          //User should be logged in
          echo do_shortcode('[kk_star_ratings]');
      } catch (FacebookApiException $e) {
         //User is not logged in
         echo "Log in with Facebook to rate this post";

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • kk Star Ratings
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic