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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:50:41+00:00 2026-06-14T15:50:41+00:00

I’m stuck with sharing and commenting Facebook posts from my website. Look. In Twitter

  • 0

I’m stuck with sharing and commenting Facebook posts from my website.

Look.
In Twitter we can reply a tweet simply by a link

https://twitter.com/intent/tweet?in_reply_to=35782000644194304

or

we can retweet the tweet by this link

https://twitter.com/intent/retweet?tweet_id=35782000644194304

it’s so easy, after clicking you redirecting to twitter where you can do this, and i like it.

With facebook posts it is not so easy.
I have Facebook posts (copies of posts, i parsed them before and saved to my DB, ID of that posts I saved too) at my website and I’d like to share/comment/like this posts. Maybe Facebook have the links like twitter, or some another way to do it, I don’t know, but i spend all day to find solution and I failed.

Maybe it is possible to create links like this:

http://facebook.com/ID_OF_THAT_FB_POST/share
or
http://facebook.com/ID_OF_THAT_FB_POST/comment

and.. after clicking the link, it redirects to facebook page, where you can share this post or comment?

  • 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-14T15:50:42+00:00Added an answer on June 14, 2026 at 3:50 pm

    Well let me see if I understand, If you want to SHARE/COMMENT/LIKE a post on Facebook, from your website then you can use the Graph API, POST, connection section.
    https://developers.facebook.com/docs/reference/api/post/

    This allows you to create a comment and a like, having the right access_token and the stream_publish permission.

    Create:
    You can write to the POST_ID/comments connection to post a comment to the post by issuing an HTTP POST request with the publish_stream permission and following parameters.

    So you have yo make an HTTP POST request to http://graph.facebook.com/POST_ID/comments?message=HELLO+WORLD&access_token=YOUR_ACCESS_TOKEN

    same thing for the like:

    make an HTTP POST request to http://graph.facebook.com/POST_ID/likes?access_token=YOUR_ACCESS_TOKEN

    with Javascript SDK would be something like this :

    var postID='POST_ID';
    var msg = 'Comment this post';
    FB.api('/'+postID+'/comments', 'post', { message: msg }, function(response) {
      if (!response || response.error) {
        alert('Error occured');
      } else {
        alert('Post ID: ' + response.id);
      }
    });
    

    If you want to share the there is no API documentation for that, but you can use something like this:

    <script type="text/javascript">
    function sharePost(){
     var page = 'https://www.facebook.com/permalink.php?story_fbid=POST_ID&id=PAGE_ID';
     var sharer= 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(page);
     var w=660;
     var h=460;
     var sTop=window.screen.height/2-(h/2);
     var sLeft=window.screen.width/2-(w/2);
     var sharer= window.open(sharer,"Share","status=1,height="+h+",width="+w+",top="+sTop+",left="+sLeft+",resizable=0");
     return false;
    }
    </script>
    
    <a onclick="sharePOST()">SHARE POST</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
I have a bunch of posts stored in text files formatted in yaml/textile (from
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from

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.