[英]Getting the user's Facebook profile picture after Facebook authentication using ReactJS?
I am trying to implement a feature on my website where if you were to sign up or in with Facebook it would automatically put a profile picture. 我正在尝试在我的网站上实现一项功能,如果您要注册或使用Facebook,它会自动添加个人资料图片。 But I've been having some problems on implementing it.
但是我在实施它时遇到了一些问题。 Here is my code:
这是我的代码:
I've done a lot of research including the Facebook Graph API documentation. 我已经做了很多研究,包括Facebook Graph API文档。 But I never got anything relating to my question, I started to see if anyone asked this question already on this site but I didn't see anything.
但是我没有任何与我的问题有关的东西,我开始看看是否有人在此站点上已经问过这个问题,但是我什么也没看到。 Well anything relating to uploading a Facebook profile picture in your app with React JS.
以及与使用 React JS在您的应用程序中上传Facebook个人资料图片有关的所有信息。 Any help would be great.
任何帮助都会很棒。 Thank You.
谢谢。
您所要做的就是这个。
this.getUserProfilePicture();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.