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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:21:55+00:00 2026-05-19T04:21:55+00:00

In short, I want to use FB api for posting the status, in this

  • 0

In short, I want to use FB api for posting the status, in this scenario :

the user have to type some update (in my website) which will posted to db,
the user may check (post to fb) so that the update also appears in his FB profile.

for posting the update in my website I have a textarea in an HTML form which points the action to another php file (to write it in the DB)

Finally I wil I’ll show you both files to be safe and give accurate answers

How to integrate both actions (posting to both FB and DB) , what should I do and where?

Thx

  • 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-19T04:21:56+00:00Added an answer on May 19, 2026 at 4:21 am

    Following the new php-sdk workflow should be easily:

    your page should contains the login button with the necessary JS and server-side script to hold the session just like the example.php. One important note here is that you need to ask the user for the publish_stream permission so your login button should look like:

    <fb:login-button perms="read_stream,publish_stream"></fb:login-button>
    

    Now on refresh, you check that you have a valid session so you show the submission form, or the “facebook” checkbox…

    After submission and in your action file, for example post.php:
    You get the $_POST['user_status'] validate it and submit it to your DB and then check for the facebook checkbox AND if you have a valid session:

    require '../src/facebook.php';
    $facebook = new Facebook(array(
      'appId' => 'APP_ID',
      'secret' => 'APP_SEC',
      'cookie' => true,
    ));
    $session = $facebook->getSession();
    
    if($session && isset($_POST['fb_checkbox'])) {
        $facebook->api('/me/feed', 'post', array('message'=>$_POST['user_status']));
    }
    

    More details on what you can post is available here.

    This should give you an idea how to start. 🙂

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

Sidebar

Related Questions

I want to use this api that returns the place matching a zipcode e.g.
I want to write a C program which makes use of the linux crypto-api
In short, I want to use an object literal to allow me to pass
In short: I want to have two fullscreen views, where I can switch between
I want to make a long list short by hiding some elements in long
Short question is: how can i use graph api oauth redirects mechanism to authenticate
i am using Win32 API. i have a thread in c and want to
I have a high-resolution image that I want to use as a tiled map
I'm looking to use a web service that offers a streaming api. This api
I have to use a Java API for a project, but since I'm not

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.