Skip to content

Facebook integration seems to work only for authentication #17

Open
@keul

Description

@keul

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)"
        }
    }


}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions