I have a button that when I click, connects to facebook and displays the person's data in a registration form, in that form to a text field that returns the following: http://graph.facebook.com/'.$fb_id.'/picture?width=300
I would like to save the photo that the link returns me to the database. I was using file_put_contents('...',file_get_contents())
, but it is no longer working.