• Resolved PogiVC

    (@pogivc)


    I’m trying to use both Login with Ajax (above) and Facebook AWD’s Connect with Facebook (below):

    Screenshot

    Right now, I’m using both widgets but I’m hoping to integrate Connect with Facebook into the Ajax plugin. Is there a PHP call for the connect button?

    How would I be able to remove the “Name” and “Logout” in the Facebook widget?

    And also, the FB avatar loads in the Facebook widget but not in the Ajax widget. Is it possible to load the Facebook avatar in Ajax?

    Also, after logging in with Facebook, it redirects to a missing page:

    Screenshot

    Is there a way to redirect back to homepage?

    http://wordpress.org/extend/plugins/facebook-awd/

    For a web development noob, I’m trying to be as clear as I can, but if you have any questions, feel free to ask.

Viewing 1 replies (of 1 total)
  • Plugin Author AHWEBDEV

    (@ahwebdev)

    Hi,

    Is there a PHP call for the connect button?
    Yes, to use the function php you need first to globalize the object:

    global $AWD_facebook;
    echo $AWD_facebook->get_the_login_button($options);

    where $options is an array of options:

    1. $options[‘login_button_width’] number with in px
    2. $options[‘login_button_profile_picture’] 1 or 0
    3. $options[‘login_button_faces’] 1 or 0
    4. $options[‘login_button_maxrow’] number
    5. $options[‘login_button_logout_value’] Logout

    the FB avatar loads in the Facebook widget but not in the Ajax widget. Is it possible to load the Facebook avatar in Ajax?
    Yes, the FB avatar is called in the function via PHP API Facebook
    You can use API php when a user is connect like that:

    global $AWD_facebook;
    echo '<img src="http://graph.facebook.com/'.$AWD_facebook->uid.'/picture">';

    Also, after logging in with Facebook, it redirects to a missing page:
    Yes There is an error on this point, this will be fixed in next release.

    Is there a way to redirect back to homepage?
    You can edit the AWD_facebook.php file in the connect_footer() function.
    Remove this line and replace by what you want.
    window.location.href = window.location.href;

    Hope that will help You!
    Good luck.

    You should not implement modifications directly in the plugin.
    I’am working on a new stable release, and you will be able to work with hook (action and filter) instead of direct modifications.
    Better to keep a stable version of the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Facebook AWD All in one] Login with Ajax and Connect with Facebook’ is closed to new replies.