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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:53:28+00:00 2026-05-25T06:53:28+00:00

* strong text *I have a website that publishes articles every day. I want

  • 0

*strong text*I have a website that publishes articles every day.

I want to have a corresponding Facebook group that I can publish the articles to at the same time as on my site.

I have set up a similar arrangement in twitter using the api. When I publish an article to my site I it automatiaclly posts the headline and link back to twitter via the twitter API. I would like to have a similar arrangement for my facebook group.

Is it possible to have my stories forwarded to my facebook group wall?

EDIT

Ok, I have gotten this far, and no further:

Step 1: Get authorisation to publish to the stream

if ($fp = fopen('https://graph.facebook.com/oauth/access_token?client_id=XXXXXXXXXX&client_secret=XXXXXXXXXXXXtype=client_cred&scope=publish_stream', 'r')) {
    $content = '';
    // keep reading until there's nothing left
    while ($line = fread($fp, 1024)) {
        $content .= $line;
    }
    $tokens = explode("access_token=",$content);

    // do something with the content here
    $auth_token = $tokens[1];
    fclose($fp);


} else {
    // echo" an error occured when trying to open the specified url";
}

Step 2: send my message to the stream using my authorisation code (I have chosen to use cURL):

 $message="This will be a post on my groups wall.";
$url = "https://graph.facebook.com/my_app_id/feed";

$data = array('message' => $message, 'auth_token' => $auth_token);

$handle = curl_init($url);
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl_handle,CURLOPT_URL,$url);
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);

if (empty($buffer))
{
    print "Nothing seems to have happened";
}
else
{
    print $buffer;
}

The code runs with no errors, but nothing gets returned and nothing gets posted to the wall

any ideas?

  • 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-25T06:53:28+00:00Added an answer on May 25, 2026 at 6:53 am

    Facebook treats pages similar to the way they treat people, you specify a UID which is associated with the Page ID of your group. Then just use Facebook’s Graph API to post to the stream, just as you would a person.

    To authorize, you get Facebook API permission from an admin and request the manage_pages permission.

    All of the information you need is contained here: https://developers.facebook.com/docs/reference/api/#impersonation.

    (Ctrl+F Page Login for more information on authorizing to update to pages).

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

Sidebar

Related Questions

strong text I have grids showing to user and want to not allow sorting
I have a website with Dutch text which I want to translate to English.
I am creating a website that will have articles; each article will have comments.
I have a website that utilizes MS SQL 2008's FTS (Full-Text Search). The search
Have some text that needs to be replaced, searched around this website for all
I have a simple contact form on a website that has 2 text fields,
I have two Xpath expressions ... //*[@id='gutter']/p[strong[text()='Date:']]/text() //*[@id='gutter']/p[strong[text()='Time:']]/text() How do I write a single
I have a text string that has been doctored to be web safe URLs
I have a website that uses Basic Authentication (username/password). Why is the following code
I have an ordering website that needs to make a set up request on

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.