Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook integration seems to work only for authentication #17

Open
keul opened this issue Nov 16, 2015 · 3 comments
Open

Facebook integration seems to work only for authentication #17

keul opened this issue Nov 16, 2015 · 3 comments
Labels

Comments

@keul
Copy link
Member

keul commented Nov 16, 2015

I'm trying to configure an authentication for Linkedin, Twitter and Facebook.
Not only authentication, I want to read the best set of data I can get from the remote social.

In my old experience with pas.plugings.velruse, Facebook was the most simple social network to integrate with Plone, but with this add-on I can only authenticate.

Twttitter and Linkedin are OK: after configuration I can get back lot of interesting data. Facebook only return's me the fullname and no email (althouht my Facebook app is configured to expose public_profile and email).

schermata 2015-11-16 alle 19 05 54

Have you ever tested a Facebook integration for read additional user's data?

Follow my configuration:

{
    "facebook": {
        "display": {
            "title": "Facebook",
            "cssclasses": {
                "button": "btn btn-default",
                "icon": "glypicon glyphicon-facebook"
            },
            "as_form": false
        },
        "propertymap": {
            "email": "email",
            "link": "home_page",
            "location": "location",
            "name": "fullname"
        },
        "scope": ["public_profile", "email"],
        "class_": "authomatic.providers.oauth2.Facebook",
        "short_name": 1,
        "consumer_key": "xxx",
        "consumer_secret": "xxx",
        "access_headers": {
            "User-Agent": "Plone (pas.plugins.authomatic)"
        }
    },

    "twitter": {
        "display": {
            "title": "Twitter",
            "cssclasses": {
                "button": "btn btn-default",
                "icon": "glypicon glyphicon-twitter"
            },
            "as_form": false
        },
        "propertymap": {
            "name": "fullname",
            "location": "location",
            "url": "home_page",
            "description": "description",
            "portrait": "profile_image_url"

        },
        "class_": "authomatic.providers.oauth1.Twitter",
        "consumer_key": "xxx",
        "consumer_secret": "xxxx",
        "access_headers": {
            "User-Agent": "Plone (pas.plugins.authomatic)"
        }
    },

    "linkedin": {
        "display": {
            "title": "Linkedin",
            "cssclasses": {
                "button": "btn btn-default",
                "icon": "glypicon glyphicon-linkedin"
            },
            "as_form": false
        },
        "propertymap": {
            "emailAddress": "email",
            "location.name": "location",
            "formattedName": "fullname",
            "publicProfileUrl": "home_page"
        },
        "scope": ["r_basicprofile", "r_emailaddress"],
        "class_": "authomatic.providers.oauth2.LinkedIn",
        "consumer_key": "xxx",
        "consumer_secret": "xxxx",
        "access_headers": {
            "User-Agent": "Plone (pas.plugins.authomatic)"
        }
    }


}
@keul keul added the question label Nov 16, 2015
@jensens
Copy link
Member

jensens commented Nov 20, 2015

according to http://peterhudec.github.io/authomatic/reference/providers.html#authomatic.providers.oauth2.Facebook there should be plenty of information available with facebook.

@keul
Copy link
Member Author

keul commented Nov 20, 2015

@jensens yes exactly. Maybe is a Authomatic issue?
I'll try to open one there

@keul
Copy link
Member Author

keul commented Nov 20, 2015

Wait! It's probably a known issue. See authomatic/authomatic#112
It seems that @miohtama found a workaround.

I'll do a check ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants