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 9096987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:59:48+00:00 2026-06-16T23:59:48+00:00

ISSUE :If i am using graph URL method as in facebook developer’s blog here

  • 0

ISSUE:If i am using graph URL method as in facebook developer’s blog here LINK,i am just able to post to a single page at a time(i want to be able to post pictures to all the selected pages of my application user).[developing an application to let users post to multiple pages at a time].So i am not using that method,and below is my method.

Using Heroku app engine,it doesn’t allow to permanently store uploaded files on its server.so i can’t save photos.i.e please don’t refer move_uploaded_file().

Here’s the code for html form field:

<form enctype="multipart/form-data" action="poster.php" method="POST">
<p>Please choose a photo: </p>
<input name="source" type="file">
<p>Add Description </p>
<input name="message" type="text" value=""> 
<input type="submit" value="Upload"/>
</form>

Here’s the poster.php code:

<?php
require "facebook.php" ;
$facebook = new Facebook(array(
'appId'  => '',
'secret' => '',
'cookie' =>true,
));
if(session_id()){}
else{session_start();}
$facebook->setFileUploadSupport("http://" . $_SERVER['SERVER_NAME']);
$x=realpath($_FILES['source']['tmp_name']);
$parameters = array('message' => $_POST['message'],'source' =>'@' . $x );
$parameters['access_token'] = $_SESSION['active']['access_token'];
$check=$facebook->api('/me/photos','POST',$parameters);
$redirecting="https://apps.facebook.com/pagecron/manage.php";
echo "<script>top.window.location='".$redirecting."';</script>";
?>
  • 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-16T23:59:49+00:00Added an answer on June 16, 2026 at 11:59 pm

    Sorry answering my own question,but it will be really helpful a lot to all others….first of all..i am happy i did it!!!

    Here is wat the mistake was…
    Replace $facebook->setFileUploadSupport("http://" . $_SERVER['SERVER_NAME']);

    with

    $facebook->setFileUploadSupport("http://apps.facebook.com/myappname");

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

Sidebar

Related Questions

Issue Using the following just simply doesn't work properly in -webkit- and -moz- browsers:
I am doing some integration with Facebook Open Graph using their oAuth flow and
I'm developing a facebook canvas application (iframe) and I'm using the Open Graph API
I'm having an issue with a JFreeChart overlaid graph. I'm using JFreeChart 1.0.13. What
I'm having the following issue while using Flot for a graph. The input for
I am having an issue when trying to build an Annotated Timeline Graph using
I want to post on face book page using Graph API.The code will be
I am using facepy facebook graph API to access my mailbox/messages and I followed
I'm using the following to post a message on my Facebook page: $attachment =
I'm doing some integration with Facebook on a project (using graph api) and everything

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.