Manoj Prajapat Manoj Prajapat - 6 months ago 46
PHP Question

facebook profile image using Email id?

i want to show a facebook profile image only by using email id...

i have done this with user id , but i need to display using email id....


/** Below working code with user ID but I need it with email ID **/

<?php
$t = "11";
if(isset($_POST['email_id']))
{
$t=$_POST['email_id'];
}
?>

<form name="sample_form" action="" method="post">
<table>
<tr>
<td></td>
<td>
<img src="https://graph.facebook.com/&lt;?php echo $t; ?>/picture?type=large" alt="" />
<td>
</tr>
<tr>
<td>Username / User ID :</td>
<td>
<input type="text" value="" name="email_id" />
</td>
</tr>
<tr>
<td>
<td>
<input type="submit" value="Find FB profile image" />
</td>
</tr>
</table>
</form>


can anyone know how spokeo.com work

it can featch facebook profile image using email id

Thanks

Answer

This is not possible without asking for the user's permission.

However, if you have a valid access token I believe this endpoint may do what you're looking for: https://graph.facebook.com/search?q={EMAIL}&type=user