user1951426
user1951426

Reputation:

Upload picture from computer and send it to graph api

i am trying to upload the picture from computer ,using a basic html input form,i have an array of global variable $_FILE with me.Now my question is how will i pass that picture to facebook graph api,do i need to store that picture on my server.How will i generate the link (path) of image stored(either temporary or permanent).

Upvotes: 2

Views: 250

Answers (1)

World Gamer
World Gamer

Reputation: 333

You may use <?php echo $file=$_SERVER['DOCUMENT_ROOT']; ?> to find the server path and process it.

Upvotes: 1

Related Questions