WordPress.org

Ready to get started?Download WordPress

Forums

Simple Facebook Connect
[resolved] How to know if user is logged in in FB (3 posts)

  1. reineskye25
    Member
    Posted 1 year ago #

    Hello Sir/Mam,

    Please help me or give me ideas how to use Simple Facebook Connect plugin to know if user is logged in in facebook and has authenticated the the facebook app. Because I'm creating an online voting system and I have used WP Post Ratings. I want users to be only allowed to vote if he/she is logged in in facebook and has authenticated the app using Simple Facebook Connect plugin. I also want to know how to get the email address of the user using simple facebook connect and pass it to a php SESSION variable. Please I need help badly. Can someone point me to the right direction? :)

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    Tech Ninja
    Plugin Author

    Posted 1 year ago #

    $user = sfc_cookie_parse();
    if (isset($user['user_id'])) {
    // $user is connected via FB, and $user contains their information
    }
  3. reineskye25
    Member
    Posted 1 year ago #

    Thank you very much for your response sir Otto :) Its a very big help for me. Thanks again :) I'll try it later :) Have a good day :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic