Skip to content
Snippets Groups Projects
Commit b2a27c03 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Remove unused attribute mappings for social networks. Reformat mapping definition files.

parent e57ed469
No related branches found
No related tags found
No related merge requests found
<?php <?php
$attributemap = array( $attributemap = array(
// Generated Facebook Attributes // Generated Facebook Attributes
'facebook_user' => 'eduPersonPrincipalName', // username OR uid @ facebook.com 'facebook_user' => 'eduPersonPrincipalName', // username OR uid @ facebook.com
'facebook_targetedID' => 'eduPersonTargetedID', // http://facebook.com!uid 'facebook_targetedID' => 'eduPersonTargetedID', // http://facebook.com!uid
'facebook_cn' => 'cn', // duplicate of displayName 'facebook_cn' => 'cn', // duplicate of displayName
// Attributes Returned by Facebook // Attributes Returned by Facebook
'facebook.first_name' => 'givenName', 'facebook.first_name' => 'givenName',
'facebook.last_name' => 'sn', 'facebook.last_name' => 'sn',
'facebook.name' => 'displayName', // or 'cn' 'facebook.name' => 'displayName', // or 'cn'
'facebook.email' => 'mail', 'facebook.email' => 'mail',
//'facebook.pic' => 'jpegPhoto', // URL not image data 'facebook.username' => 'uid', // facebook username (maybe blank)
//'facebook.pic_square' => 'jpegPhoto', // URL not image data 'facebook.profile_url' => 'labeledURI',
'facebook.username' => 'uid', // facebook username (maybe blank) 'facebook.locale' => 'preferredLanguage',
//'facebook.uid' => 'uid', // numeric facebook user id 'facebook.about_me' => 'description',
'facebook.profile_url' => 'labeledURI',
'facebook.locale' => 'preferredLanguage',
'facebook.about_me' => 'description',
); );
<?php <?php
$attributemap = array( $attributemap = array(
// See http://developer.linkedin.com/docs/DOC-1061 for LinkedIn Profile fields. // See http://developer.linkedin.com/docs/DOC-1061 for LinkedIn Profile fields.
// NB: JSON response requires the conversion of field names from hyphened to camelCase. // NB: JSON response requires the conversion of field names from hyphened to camelCase.
// For instance, first-name becomes firstName. // For instance, first-name becomes firstName.
// Generated LinkedIn Attributes // Generated LinkedIn Attributes
'linkedin_user' => 'eduPersonPrincipalName', // id @ linkedin.com 'linkedin_user' => 'eduPersonPrincipalName', // id @ linkedin.com
'linkedin_targetedID' => 'eduPersonTargetedID', // http://linkedin.com!id 'linkedin_targetedID' => 'eduPersonTargetedID', // http://linkedin.com!id
// Attributes Returned by LinkedIn // Attributes Returned by LinkedIn
'linkedin.firstName' => 'givenName', 'linkedin.firstName' => 'givenName',
'linkedin.lastName' => 'sn', 'linkedin.lastName' => 'sn',
'linkedin.id' => 'uid', // alpha + mixed case user id 'linkedin.id' => 'uid', // alpha + mixed case user id
//'linkedin.pictureUrl' => 'jpegPhoto', // URL not image data 'linkedin.headline' => 'title',
'linkedin.headline' => 'title', 'linkedin.summary' => 'description',
'linkedin.summary' => 'description',
); );
<?php <?php
$attributemap = array( $attributemap = array(
// See http://developerwiki.myspace.com/index.php?title=People_API for attributes // See http://developerwiki.myspace.com/index.php?title=People_API for attributes
// Generated MySpace Attributes // Generated MySpace Attributes
'myspace_user' => 'eduPersonPrincipalName', // username OR uid @ myspace.com 'myspace_user' => 'eduPersonPrincipalName', // username OR uid @ myspace.com
'myspace_targetedID' => 'eduPersonTargetedID', // http://myspace.com!uid 'myspace_targetedID' => 'eduPersonTargetedID', // http://myspace.com!uid
'myspace_username' => 'uid', // myspace username (maybe numeric uid) 'myspace_username' => 'uid', // myspace username (maybe numeric uid)
//'myspace_uid' => 'uid', // numeric myspace user id
// Attributes Returned by MySpace // Attributes Returned by MySpace
'myspace.name.givenName' => 'givenName', 'myspace.name.givenName' => 'givenName',
'myspace.name.familyName' => 'sn', 'myspace.name.familyName' => 'sn',
'myspace.displayName' => 'displayName', 'myspace.displayName' => 'displayName',
//'myspace.thumbnailUrl' => 'jpegPhoto', // URL not image data 'myspace.profileUrl' => 'labeledURI',
'myspace.profileUrl' => 'labeledURI',
); );
<?php <?php
$attributemap = array( $attributemap = array(
// Generated Twitter Attributes // Generated Twitter Attributes
'twitter_screen_n_realm' => 'eduPersonPrincipalName', // screen_name@twitter.com 'twitter_screen_n_realm' => 'eduPersonPrincipalName', // screen_name@twitter.com
//'twitter_at_screen_name' => 'eduPersonPrincipalName', // legacy @twitter format 'twitter_targetedID' => 'eduPersonTargetedID', // http://twitter.com!id_str
'twitter_targetedID' => 'eduPersonTargetedID', // http://twitter.com!id_str
// Attributes Returned by Twitter // Attributes Returned by Twitter
'twitter.screen_name' => 'uid', // equivalent to twitter username without leading @ 'twitter.screen_name' => 'uid', // equivalent to twitter username without leading @
//'twitter.id_str' => 'uid', // persistent numeric twitter user id 'twitter.name' => 'displayName',
'twitter.name' => 'displayName', 'twitter.url' => 'labeledURI',
'twitter.url' => 'labeledURI', 'twitter.lang' => 'preferredLanguage',
'twitter.lang' => 'preferredLanguage', 'twitter.description' => 'description',
//'twitter.profile_image_url' => 'jpegPhoto',
'twitter.description' => 'description',
); );
<?php <?php
$attributemap = array( $attributemap = array(
// Generated Windows Live ID Attributes // Generated Windows Live ID Attributes
'windowslive_user' => 'eduPersonPrincipalName', // uid @ windowslive.com 'windowslive_user' => 'eduPersonPrincipalName', // uid @ windowslive.com
'windowslive_targetedID' => 'eduPersonTargetedID', // http://windowslive.com!uid 'windowslive_targetedID' => 'eduPersonTargetedID', // http://windowslive.com!uid
'windowslive_uid' => 'uid', // windows live id 'windowslive_uid' => 'uid', // windows live id
'windowslive_mail' => 'mail', 'windowslive_mail' => 'mail',
// Attributes Returned by Windows Live ID
// Attributes Returned by Windows Live ID 'windowslive.FirstName' => 'givenName',
'windowslive.FirstName' => 'givenName', 'windowslive.LastName' => 'sn',
'windowslive.LastName' => 'sn', 'windowslive.Location' => 'l',
'windowslive.Location' => 'l',
//'windowslive.ThumbnailImageLink'=> 'jpegPhoto', // URL not image data
); );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment