简体   繁体   English

如果没有登录Facebook用户ID,该如何获取?

[英]How to get a facebook user id if he is not logged into your app?

I want the get a users facebook ID, but that user is not registered to my app. 我想要获取用户facebook ID,但是该用户未注册到我的应用程序。

I only want his ID to have a picture of him, but Can I even have his ID if he is not inside my app? 我只希望他的身份证上有他的照片,但是如果他不在我的应用程序中,我甚至还能得到他的身份证? ** the user is logged into facebook. **用户已登录Facebook。

Thank you. 谢谢。

I'm using facebook php API. 我正在使用Facebook php API。

Don't think so.................................... 别这么想....................................

Try logging out of facebook (you), then visiting a user's profile. 尝试注销Facebook(您),然后访问用户的个人资料。 What do you see? 你看到了什么? Well that's all the information you can have without them "connecting" to your app. 好了,这就是您可以拥有的所有信息,而无需他们“连接”到您的应用程序。

Perhaps you can have your script check for their facebook cookie... good luck with that. 也许您可以让脚本检查他们的facebook cookie ...祝您好运。

There is no way to get information from facebook of someone that you don't know who they are. 无法从Facebook上获取您不知道他们是谁的信息。 You would need a data match of some sort to accomplish this, and most of all, consent. 您需要某种数据匹配来完成此操作,最重要的是要获得同意。 This is primarily done for security purposes, otherwise you could get any information from anyone with nothing but a reference to their name, or whatever. 这样做主要是出于安全性目的,否则,您可以从任何人那里获得任何信息,而无需提及他们的姓名或其他任何东西。

There is an " fbs_[appid] " cookie. 有一个“ fbs_[appid] ” cookie。 You will get everything required in that cookie. 您将在该cookie中获得所需的一切。

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

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