login
login
Take a Facebook access token and attempt to retrieve and login the matching user in our system.
Parameters
Name | Description |
nodeID optional | The node ID for this domain. |
domain optional | Domain of ONEsite network to work with. |
facebookAccessToken required | A verified access token from Facebook. |
returnUserDetails optional | Return user details with login action. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcFacebook?action=login&nodeID=188234&facebookAccessToken=AAABiJIiZCZCFsBAFoxzERj96ATjIFG64wl85e1Q80yDeombreCD3vMDdWVg9uKm24a04SZCbUkhnOv7M2Q7ZBXqdVvtQrvFwBNcyvXJ7UwZDZD&returnUserDetails=1&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
{ "service":"svcFacebook", "action":"login", "code":1, "message":"Login was successful", "item":{ "user_id":"229928503", "core_u":"e65a6909f6b91df08d84f109ed3278f2", "core_x":"b230cc18bb93487e4d3d535cb91a6576", "node_id":188234, "user_details":{ "integration_id":"100003605854098", "integration_type":"facebook", "avatar":"https://graph.facebook.com/100003605854098/picture?type=large" }, "display_name":"ONEsite" } } |
Service Information
Service | svcFacebook |
Method | login |
Type | REST |
Response Types | JSON, XML |