Retrieve User by Facebook Id

From KickApps Documentation

Jump to: navigation, search

Use this call to retrieve basic user info using the users Facebook Id. Third party login should be turned on in the affiliate center in order for this to work.

http://api.kickapps.com/rest/user/info/{fbId}/{asId}

Contents

Parameters

  • fbId. Required. Integer. Facebook Id of the user whose basic info is being retrieved.
  • as. Required. Integer. The site that the media set is being added to. as is unique for each of the affiliate's sites.

Post Parameter

  • t. String. Required. Your access permissions.
  • callback. String. Optional. The name of your JavaScript callback function.
  • clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".

Payload

On success the following payload will be returned:

{"payload_type":"json","userId":"","email":"","status":"1","error":"","username":""}

on error, the following payload will be returned:

  • Member trying to access the call:
{"payload_type":"json","status":"-1","error":"Insufficient user permissions for this operation."}
  • when incorrect Facebook Id is passed:
{"payload_type":"json","status":"-1","error":"Facebook ID not found. Please review and resubmit"}

Permissions

Only webmaster, Admins and Editors can access this call.


List of KickApps API Calls


Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.