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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:45:19+00:00 2026-05-31T06:45:19+00:00

I have created Read button for publishing actoin on facebook timeline using opengraph! So

  • 0

I have created Read button for publishing actoin on facebook timeline using opengraph!
So when user click the button the activity is posted on thier timeline!
My question is how to remove read action for specific posts? Like on mashable facebook app there’s one button giving right to share or unshare read!

    <script type="text/javascript">
  function postArticle()
  {
      FB.api(
        '/me/news.reads?article=<?php the_permalink() ?>',
        'post',
        function(response) {
           if (!response || response.error) {
              alert('Error occured');
           } else {
              alert('Successful! Action ID: ' + response.id);
           }
        });
  }
  </script>

I am using above code for share read button. How to create button for unsharing read

  • 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-31T06:45:20+00:00Added an answer on May 31, 2026 at 6:45 am

    When you successfully post a news.reads action, the Graph API will return an object of the form

    {"id": "ACTION_ID"}
    

    If you want to allow the user to delete the action you can then perform an HTTP DELETE on

    https://graph.facebook.com/ACTION_ID?access_token=USER_ACCESS_TOKEN
    

    Code to do this would be:

    <script type="text/javascript">
    
    function deleteAction()
    {
      FB.api(
        '<?= $actionID ?>',
        'delete',
        function(response) {
           alert('action deleted')
        });
    }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a C# class file by using a XSD-file as an input.
First, I would have created this example in JSFiddle but they are in read-only
I have created a java SE application that uses the mysql database using mysql
I'm trying to create a read button for my application. I have implemented the
I have created an activity where i have used shared preferences for storing data..now
I have created a derived button class which contains a couple ImageSource members for
I have created new class which handles button. It does nothing (just for test,
I've setup a PayPal sandbox. I have created a buy now button with a
I have created my own ControlTemplate for Button, like this: <Style x:Key=LightButtonStyle TargetType={x:Type ButtonBase}>

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.