POST userprofiles/getByFacebookId
Returns a user profile.
URL:
http://www.mobileroadie.com/api/userprofiles/getByFacebookId
Formats
XML, JSON, HTML
Requirements
SSL, API Secret, White-Listed IP Address
HTTP Method(s):
POST
URL Parameter(s):
-
key
-
Required
-
POST Parameters:
-
secret
-
Required.
-
-
facebook_id
-
Required. The Facebook user id.
-
Usage Example
<?php $data = array( 'secret' => 'your_secret_key', 'facebook_id' => '123456789012345', ); $handle = curl_init("https://mobileroadie.com/api/userprofiles/getByFacebookId/key/4d4ba30d73b77f7"); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); $response = curl_exec($handle); curl_close($handle); ?>
Example XML Response
<?xml version="1.0" encoding="utf-8"?> <xml> <item> <device_id>153750</device_id> <name>John Doe</name> <nickname>sfschroeder</nickname> <email>support@mobileroadie.com</email> <age>21</age> <gender></gender> <status></status> <profile_image>http://gs3.mblrd.com/i/50-50/c/aHR0cDovL21vYmlsZXJvYWRpZS5jb20vaW1nL2RlZmF1bHQtaW1hZ2UucG5n</profile_image> <zipcode>90211</zipcode> <country>US</country> </item> </xml>
Comments
0 comments
Please sign in to leave a comment.