WordPress.org

Ready to get started?Download WordPress

Forums

Social Connect
adding new scope for the fb outh: is it possible? (3 posts)

  1. Bughi
    Member
    Posted 1 year ago #

    I am trying to add a a new scope to the fb plugin and i changed the oauth ulr from the js file to include rsvp_event but it didn't work . is there anything i should take into consideration ? Thank you.

    http://wordpress.org/extend/plugins/social-connect/

  2. rickard_l
    Member
    Posted 1 year ago #

    I am also keen on adding permission and even text to the approval facebook pop-up. So please yes I also would like to know how to add requests for information other than the preset email. For instance the feed to the users wall for instance.

    Where can I find how to code this in? I looked first in the facebook.php and tried on row 420 where the login array is but I must have missunderstood how to or where to add codes of requests so. Please I need some help.

    Thanks

  3. kidradio
    Member
    Posted 1 year ago #

    I just figured this out recently. Hope this helps someone else.

    I directly edited two files in the plugin:
    connect.js
    Need to extend the scope to gain additional permissions on line 48. Use this facebook api reference.
    window.open('https://graph.facebook.com/oauth/authorize?client_id=' + client_id + '&redirect_uri=' + redirect_uri + '&scope=email,user_location,user_website,user_about_me',

    social-connect.php
    Add additional json variables after line 82.
    $sc_about_me = $fb_json->{ 'bio' };

    And then on line 175, add your variables to the array:
    'description' => $sc_about_me

    I did encounter a couple problems when I tried to get user_location. First, the login attempt loaded a white screen and the user was not created. Secondly, I am saving the location value to a custom author meta field and I can't seem to get it to store any kind of value. Any thoughts would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.