简体   繁体   English

请求并使用curl登录网站

[英]request and login a site using curl

I want to check whether a user has any notification of facebook or not.. to do that I thought of curl, but the user have to put his login detail. 我想检查用户是否有任何关于facebook的通知..要做到这一点,我想卷曲,但用户必须输入他的登录详细信息。 I wonder is there any better way to do it? 我想知道还有更好的方法吗? The weak point of curl method is that the users will receive warning email because someone loggin from different locality. curl方法的弱点是,由于有人从不同的地方登录,用户将收到警告电子邮件。

Facebook has a security witch prevent you to access the site by cURL. Facebook有一个安全女巫,阻止您通过cURL访问该网站。

You better create a facebook application, by using the notification API : https://developers.facebook.com/docs/graph-api/reference/user/notifications 您最好使用通知API创建一个Facebook应用程序: https : //developers.facebook.com/docs/graph-api/reference/user/notifications

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

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