Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7893561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:09:49+00:00 2026-06-03T07:09:49+00:00

//Create an album $album_details = array( ‘message’=> ‘How will you die?’, ‘name’=> ‘How will

  • 0
//Create an album
$album_details = array(
        'message'=> 'How will you die?',
        'name'=> 'How will you die?'
);
$create_album = $facebook->api('/me/albums', 'post', $album_details);


//Get album ID of the album you've just created
$album_uid = $create_album['id'];

//Upload a photo to album of ID...

$file='img/'.$fbid.'.jpg'; //Example image file

$photo_details = array( 'message'=> 'Find...51', 'image' => '@'.realpath($file));

 if ($session) {
    // We have a valid FB session, so we can use 'me'
    $upload_photo = $facebook->api('/me/photos', 'post', $photo_details);
} elseif( isset($_SESSION['user_id']) ) {
    $upload_photo = $facebook->api("/{$_SESSION['user_id']}/photos", 'post', $photo_details);
}

$upphoto = $upload_photo['id'];


ImageDestroy( $canvas );

header("Location: http://www.facebook.com".$fbid."&photoid=".$upphoto."")

I have created a facebook application which uploads photo users wall.

But repeatedly i am getting the above error. I guess that ‘/‘ is missing somewhere in the above piece of code, But i don’t know where to put ‘/‘. If any other mistakes are caught then please help me in making this code complete and working.

Thank You !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:09:50+00:00Added an answer on June 3, 2026 at 7:09 am

    Change

    header("Location: http://www.facebook.com".$fbid."&photoid=".$upphoto."")
    

    to

    header("Location: http://www.facebook.com/".$fbid."&photoid=".$upphoto);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Create facebook app Using a cURL to post a message from an App but
I want to create new album via graph api for the page that user
What I want to do is create album on facebook and upload photo to
It looks like I cant create an album for my picture producing app in
I want to create a script that automatically unzips music albums and creates a
I'm tearing my hair out trying to create a new album from a Cocoa
i am able to update user status using the following URL https://graph.facebook.com/944254185/feed?method=post& message=hello &access_token=4E35zZCu8xtLBExPJvbGCmYOXFOGe8P
Haven't seen anything, but I have seen that you can create albums in the
This MVC tutorial suggests to make dropdownlists like so: // // POST: /StoreManager/Create [HttpPost]
I am creating a gallery/albums site in Drupal 6. Perhaps the description will be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.