Facebook attributes

8 views
Skip to first unread message

Umar Draz

unread,
Jun 7, 2017, 4:00:45 AM6/7/17
to SimpleSAMLphp
Hello,

I have added facebook authentication in saml20-idp-hosted.php. It is working fine but it has very few attributes. like 

facebook_user
facebook_targetedID
facebook_cn

Where are the other attributes, like first name, lastname and email etc.

---
Umar

Ankush Gautam

unread,
Jun 7, 2017, 4:22:43 AM6/7/17
to simple...@googlegroups.com
Change  $info = $facebook->api("/" . $uid);
to
$info = $facebook->api("/" . $uid . "?fields=picture,name,email,birthday");

In authfacebook/lib/auth/source/facebook.php file

--
This is a mailing list for users of SimpleSAMLphp, not a support service. If you are willing to buy commercial support, please take a look here:
 
https://simplesamlphp.org/support
 
Before sending your question, make sure it is related to SimpleSAMLphp, and not your web server's configuration or any other third-party software. This mailing list cannot help with software that uses SimpleSAMLphp, only regarding SimpleSAMLphp itself.
 
Make sure to read the documentation:
 
https://simplesamlphp.org/docs/stable/
 
If you have an issue with SimpleSAMLphp that you cannot resolve and reading the documentation doesn't help, you are more than welcome to ask here for help. Subscribe to the list and send an email with your question. However, you will be expected to comply with some minimum, common sense standards in your questions. Please read this carefully:
 
http://catb.org/~esr/faqs/smart-questions.html
---
You received this message because you are subscribed to the Google Groups "SimpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlphp+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks & Regards,
Ankush Gautam
Software Engineer | Kellton Tech Solutions Ltd.
ankush...@kelltontech.com | www.kelltontech.com
Skype: ankush.gautam6





Umar Draz

unread,
Jun 7, 2017, 9:41:55 AM6/7/17
to SimpleSAMLphp
Hi Ankush

Thanks for your help
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages