简体   繁体   English

在C#3.5中使用电子邮件地址获取Facebook个人资料图片

[英]Getting Facebook Profile Pic using email address in C# 3.5

I am trying to get Profile Pic from email address and display on my site and i dont have user ids, i can get it (to some extent) when i access via web and this post was great help . 我正在尝试从电子邮件地址获取个人资料Pic并显示在我的网站上,但是我没有用户ID,当我通过网络访问时,我可以(在某种程度上)获得它,并且此帖子对您有很大帮助 but i am unable to get pic via C# application as solution on linked post returns middle page which contain js code with some meta tags to forward it to next result page. 但是我无法通过C#应用程序获取图片,因为链接后的解决方案返回中间页面,该页面包含带有一些meta标签的js代码以将其转发到下一个结果页面。 Tried FQL but it needs user id (indexable column). 尝试过FQL,但需要用户ID(可索引列)。

when i try https://graph.facebook.com/search?q= {EMAIL}&type=user it returns authentication error but http://www.facebook.com/#!/search.php?q=# {USERS_EMAIL_ADDRESS}&type=all&init=srp works better but this second one returns middle page with js code. 当我尝试https://graph.facebook.com/search?q= {EMAIL}&type = user时,它返回身份验证错误,但http://www.facebook.com/#!/search.php?q=# {USERS_EMAIL_ADDRESS }&type = all&init = srp效果更好,但这第二个返回带有js代码的中间页。

Note: i don't have user ids and i am not using any facebook app. 注意:我没有用户ID,并且我没有使用任何Facebook应用程序。

You are no longer able to query via email address. 您不再能够通过电子邮件地址进行查询。 When Facebook updated their Graph API they removed the ability to search for the user's ID. 当Facebook更新其Graph API时,他们删除了搜索用户ID的功能。 The user's ID is the information you need to pull their profile photo. 用户ID是您提取其个人资料照片所需的信息。

see: https://developers.facebook.com/docs/graph-api/reference/v2.1/user 参见: https : //developers.facebook.com/docs/graph-api/reference/v2.1/user

Thus, this is not possible. 因此,这是不可能的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM