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

  • SEARCH
  • Home
  • 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 6572751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:02:45+00:00 2026-05-25T15:02:45+00:00

I’m starting to learn the API to see what is available. Is there a

  • 0

I’m starting to learn the API to see what is available.

Is there a way for users to upload picture and have them both on facebook and on a site?

Ex: If I create a website for bird watching http://www.birdwatch.com, is there a way for people to post picture so that it will appears in their profile and on the website at the same time?

And when people comment on the picture it will appear on both the website and facebook?

  • 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-05-25T15:02:45+00:00Added an answer on May 25, 2026 at 3:02 pm

    Yes but its fairly involved stuff. You’ll need to get an FB developer token, code some HTML and PHP stuff etc.

    Here is some PHP code that I use to take files that have been uploaded to my server then throw 5 of them up on Facebook follows by a 6th photo that is a graphic that says “Click the link in the album description to see more”.

    The following code is very much from the Botchit & Scarper Web Dev college, but it should highlight how to get things going 🙂

    [code]

    //  Facebook Shite
    
    $fb_app_id  = 'xxxxxxxxxxxxxxxxxxxxxxxxxx';
    $fb_secret  = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
    $fb_app_url  = 'http://apps.facebook.com/your-fb-page/canvas-name-here';
    
    require './facebook.php';
    
    //Create facebook application instance.
    $facebook = new Facebook(array(
    'appId'  => $fb_app_id,
    'secret' => $fb_secret
    ));
    

    ///////////////////////////////////////////////////

    $facebookalbumname  =   stripslashes($_POST['facebookalbumname']);
    $facebookalbumurl   =   stripslashes($_POST['facebookalbumurl']);
    $facebookphoto1     =   stripslashes($_POST['facebookphoto1']);
    $facebookphoto2     =   stripslashes($_POST['facebookphoto2']);
    $facebookphoto3     =   stripslashes($_POST['facebookphoto3']);
    $facebookphoto4     =   stripslashes($_POST['facebookphoto4']);
    $facebookphoto5     =   stripslashes($_POST['facebookphoto5']);
    

    ///////////////////////////////////////////////////

    //At the time of writing it is necessary to enable upload support in the Facebook SDK, you do this with the line:
    $facebook->setFileUploadSupport(true);
    
    //Create an album
    $album_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl ." ,
        'name'=> $facebookalbumname
    );
    
    $create_album = $facebook->api('/me/albums', 'post', $album_details);
    
    //Get album ID of the album you've just created
    $album_uid = $create_album['id'];
    

    ///////////////////////

    $current = file_get_contents($facebookphoto1);  file_put_contents("facebookphoto1.jpg", $current);
    $current = file_get_contents($facebookphoto2);  file_put_contents("facebookphoto2.jpg", $current);
    $current = file_get_contents($facebookphoto3);  file_put_contents("facebookphoto3.jpg", $current);
    $current = file_get_contents($facebookphoto4);  file_put_contents("facebookphoto4.jpg", $current);
    $current = file_get_contents($facebookphoto5);  file_put_contents("facebookphoto5.jpg", $current);  
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 1"
    );
    
    $photo_details['image'] = '@' . realpath('facebookphoto1.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 2"
    );
    
    $photo_details['image'] = '@' . realpath('facebookphoto2.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 3"
    );
    
    $photo_details['image'] = '@' . realpath('facebookphoto3.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 4"
    );
    
    $photo_details['image'] = '@' . realpath('facebookphoto4.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 5"
    );
    
    $photo_details['image'] = '@' . realpath('facebookphoto5.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ///

    //Upload a photo to album of ID...
    $photo_details = array(
        'access_token'=> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
        'message'=> "See ALL the photos in this gallery at $facebookalbumurl 6"
    );
    
    $photo_details['image'] = '@' . realpath('seeallthephotos.jpg');
    
    $upload_photo = $facebook->api('/'.$album_uid.'/photos', 'post', $photo_details);
    

    ?>
    [/code]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.