How-To: Use the Graph API to Upload Photos to a user’s profile
-
I am developing an application which uploads images into user's profile.I manage to do this by referring this blog https://developers.facebook.com/blog/post/498/ Everything works fine and display the 'id' of the uploaded image. Now I want to take this id into a variable and pass it to another file without displaying 'id' of the image(Lets say I want to pass this id into a.php file and display the 'id' using 'echo' command). Can any one help me to do this? I think this is not a difficult task.Since I have vary poor knowledge about php, I cannot figure out any way. Can any one please please help me to solve this problem. Thanks.
-
Answer:
What do you mean by "pass into another php file?" If you mean reload the page but with passing the ID you can use $_GET array. Simply, after receiving the id from uploaded photo you can call function: header('location : http://yourdomain.com/a.php?id='.$id_of_photo); and then in a.php you can get it by accessing $_GET array if(isset($_GET['id'])) { echo 'uploaded photo id is: '.$_GET['id']; }
Roshanck at Stack Overflow Visit the source
Related Q & A:
- How to Use Google Calendar API?Best solution by Stack Overflow
- How do I find a yahoo user's profile if I have their email address?Best solution by Yahoo! Answers
- How can I find a member's profile on Yahoo?Best solution by Yahoo! Answers
- How do I find a member's profile?Best solution by Yahoo! Answers
- How to change privacy settings for photos posted on Facebook via graph API?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.