Member Avatar for ping0ping

Hi all and good day,

I'm having a problem to download/saved Facebook user profile picture that login to my system using their Facebook account.
Right now I'm thinking to automatically saved their Facebook profile picture to my system as they signup or login. I already have the access to user's profile picture but I just don't know how can I save the picture from the URL I got. Can someone help me with this? Pardon my English. xD

Thank you.

Recommended Answers

All 2 Replies

Depends. If you are allowed, you can use file_get_contents to get it (and file_put_contents to save it). If it's disabled you can do it with cUrl.

Member Avatar for ping0ping

Thank you pritaeas. I used file_get_contents as you suggested. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.