collective / collective/pas.plugins.authomatic

Facebook integration seems to work only for authentication

Open
#17 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
10
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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](https://cloud.githubusercontent.com/assets/284924/11190321/1ec38e0e-8c95-11e5-893b-32ec5d599141.png)

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

}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.