WordPress.org

Support

Support » Plugins and Hacks » [Plugin: kk Star Ratings] Integration with Facebook

[Plugin: kk Star Ratings] Integration with Facebook

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kamal Khan
    Member

    @bhittani

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

    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";
      }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: kk Star Ratings] Integration with Facebook’ is closed to new replies.