Save Facebook Image to Database

Asked

Viewed 86 times

1

Guys, I know it’s very simple, but I’m struggling. I’ve seen some topics here, but for me it’s still not clear how to do.

I need to save the Facebook image in the database by doing upload from her to the bank. The information that comes to me from facebook is this:

https://graph.facebook.com/"+id+"/picture?width=600

But everybody knows this way I can’t do upload. Does anyone know how I can fix this? There are some topics that have already been posted here, but did not post the solution, at least for me it was not well clarified.

Thank you in advance.

1 answer

0

Follow three alternatives:

copy("https://graph.facebook.com/"+id+"/picture?width=600");

Or

fopen("http://graph.facebook.com/"+id+"/picture");

Or

file_get_contents("http://graph.facebook.com/"+id+"/picture");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.