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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:20:21+00:00 2026-06-02T05:20:21+00:00

From Facebook Graph Api ( https://developers.facebook.com/docs/reference/api/ ) : Publishing: You can publish to the

  • 0

From Facebook Graph Api (https://developers.facebook.com/docs/reference/api/) :

Publishing: You can publish to the Facebook graph by issuing HTTP POST requests to the appropriate connection URLs, using an access
token. For example, you can post a new wall post on Arjun’s wall by
issuing a POST request to https://graph.facebook.com/arjun/feed:

curl -F 'access_token=...' \
     -F 'message=Hello, Arjun. I like this new API.' \
     https://graph.facebook.com/arjun/feed
  • Q1: is this a javascript or php ?
  • Q2: I don’t see “curl -F”
    function reference nowhere, can someone pls show me one ?

Many thanks ~

  • 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-02T05:20:23+00:00Added an answer on June 2, 2026 at 5:20 am

    curl (or cURL) is a command-line tool for accessing URLs.

    Documentation: http://curl.haxx.se/docs/manpage.html

    In this example, they are simply sending a POST to https://graph.facebook.com/arjun/feed. The -F is defining parameters to be submitted with the POST.

    This is not javascript or php. You can use curl in php, although any POST to that address with those parameters will accomplish what the example is demonstrating.

    To do this in javascript, you would create a form and then submit it:

    var form = document.createElement("form");
    form.setAttribute("method", "post");
    form.setAttribute("action", "https://graph.facebook.com/arjun/feed");
    
    var tokenField = document.createElement("input");
    tokenField.setAttribute("type", "hidden");
    tokenField.setAttribute("name", "access_token");
    tokenField.setAttribute("value", token);
    
    var msgField = document.createElement("input");
    msgField.setAttribute("type", "hidden");
    msgField.setAttribute("name", "message");
    msgField.setAttribute("value", "Hello, Arjun. I like this new API.");
    
    form.appendChild(hiddenField);
    
    document.body.appendChild(form);
    form.submit();
    

    Using jQuery, it’s a lot simpler:

    $.post("https://graph.facebook.com/arjun/feed", { 
        access_token: token, 
        message: "Hello, Arjun. I like this new API."
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can make a search query using these tokens here: http://developers.facebook.com/docs/api#search in the links:
Using the link to my events automatically generated in the docs here: http://developers.facebook.com/docs/reference/api/ (Events:
From facebook graph api explorer https://developers.facebook.com/tools/explorer I generated a token, without asking any permission.
I want to get the Bitmap from URL like - https://graph.facebook.com/100003506521332/picture I tried how-i-can-display-images-from-url-in-blackberry
I am getting photos from facebook through graph api with this call: https://graph.facebook.com/[AlbumID]/photos The
I'm using a foreach loop to get images from the graph API in facebook.
This FQL multiquery, for example: https://graph.facebook.com/fql?q={posts:SELECT actor_id,message,permalink,created_time,comments.count FROM stream WHERE source_id=me(),actors:SELECT uid,name,pic_square,profile_url FROM user
I'm trying to use the /links methods from the Graph API and can't seem
let us start with the known bug from facebook's own dev site: http://forum.developers.facebook.net/viewtopic.php?id=74700 It
I can't seem to get the Facebook Graph API to work in IE7, IE8,

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.