WordPress.org

Ready to get started?Download WordPress

Forums

kk Star Ratings
Integration with Facebook (3 posts)

  1. Zarce Baron
    Member
    Posted 2 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?

    Thanx!

    http://wordpress.org/extend/plugins/kk-star-ratings/

  2. Kamal Khan
    Member
    Plugin Author

    Posted 2 years ago #

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

  3. Volzy
    Member
    Posted 2 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

About this Topic