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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:31:51+00:00 2026-06-11T06:31:51+00:00

I am using the following script to post a link to the wall of

  • 0

I am using the following script to post a link to the wall of Facebook page:

ini_set("zend.ze1_compatibility_mode", "off");
require_once('facebook-php-sdk/src/facebook.php');
$appId = 'XXXXXXXXXXXXXX';
$secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$facebook = new Facebook(array('appId' => $appId, 'secret' => $secret));
$access_token = file_get_contents('https://graph.facebook.com/oauth/access_token?client_id='.$appId.'&client_secret='.$secret.'&grant_type=client_credentials');
$access_token = preg_replace('/^access_token=/', '', $access_token);
$attachment = array(
    'access_token' => $access_token,
    'message' => 'message text',
    'link' => 'http://www.domain.com/',
    'name' => utf8_encode('link title'),
    'description' => utf8_encode('link description'),
    'picture' => 'http://www.domain.com/images/picture.jpg'
);
$facebook->api('/XXXXXXXXXXXX/feed', 'POST', $attachment);

It was working quite fine but since 2 weeks it started trowing the following error while absolutely no modifications were made:

Fatal error:  Uncaught OAuthException: An unknown error has occurred.
thrown in /path/to/public_html/facebook-php-sdk/src/base_facebook.php on line 1033

By some primitive debugging I found out that if I comment out link element of $attachment array the problem went off. However it resulted that name at the Facebook page starts linking to picture file which is definitely not an option.

Any help will be highly appreciated.

UPDATE:

I tried to execute this request through Graph API Explorer and got the same error:

{
    "error": {
        "message": "An unknown error has occurred.", 
        "type": "OAuthException", 
        "code": 1
    }
}
  • 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-11T06:31:53+00:00Added an answer on June 11, 2026 at 6:31 am

    I’m having the same issue, with a simple web based program that occasionally updates my client’s facebook page with status updates about his inventory.

    From what I can tell, for whatever reason this bug has been placed in a “Won’t Fix” status and the feature in question has been deprecated?

    https://developers.facebook.com/bugs/397106947003500?browse=search_5013a59fc630a7b70100468

    I don’t know why JUST THE LINK FUNCTIONALITY would be deprecated, nor do I know what the new correct method is to post a link, since the Graph documentation still lists “link” as the correct field to use to do so. Anyone?

    On the bug page above, he gives a link that supposedly gives more info, but the link doesn’t work. I assumed that maybe the “.intern” portion wasn’t supposed to be there, giving me this URL…

    https://developers.facebook.com/blog/post/2012/07/25/platform-updates–operation-developer-love/

    …which DOES work, but I don’t see any information on there that is relevant to the deprecated feature, or that otherwise helps me determine how to change my code to post a link. Perhaps someone more knowledgeable about the Graph API can help!

    [I really do wish Facebook would stop deprecating stuff; would it really have done any harm to allow this to continue to work? They call it Operation Developer Love, but how can I love something that causes me extra work for no reason?]

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

Sidebar

Related Questions

I am using a gallery script with thumbnails on the following post on my
I'm using the following script to force a specific page - when loaded for
I'm using the following script to post to and endpoint, it's hitting the breakpoint
I am sharing title, image and description of post in Facebook using following code
I am using the following code for a php page, while I am receiving
I am following the instructions on this page to create a PHP script which
I am using the following script to get the POST TITLE and the CONTENT
I've tried to change filenames using following script: find dir/ -type f -exec mv
I'm using the following script in my website in order to create pagination next-previous
I'm using the following script to request new content to a file called index.html:

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.