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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:58:21+00:00 2026-06-08T02:58:21+00:00

I used facebook share button without xfbml until yesterday. Yesterday I see that share

  • 0

I used facebook share button without xfbml until yesterday. Yesterday I see that share button not working.

Until yesterday I was adding an anchor element with name fb_share only, facebook js-sdk convert the element to the the share button.

<div class="fb-share-con">
    <a type="button" name="fb_share">Share</a>
</div>

When I want to catch share event, I was assigning a function to click event of the “fb-share-con” div element and this had been working correctly(This callback method not good exactly but suffice me)

Now I do not know why but I cant use share button as above. js-sdk not convert the anchor to the share button.I was looking for fb share button usage on facebook developer page but I cant find anything about share button that work as above.

I found 2 method that works:

1 . Adding share button with fbml: I adding share button to the page with using fbml syntax , the share button working correctly but this time I cant assign a callback function( At least I dont know ).

<fb:share-button type="button"></fb:share-button>

2 . Use FB.ui : I am assigning a click event to the an html element that created by me and I am giving a callback function to the FB.ui() .I am sharing as feed but this not important. This method is so good but I am writing more code, Facebook does not create share button itself, so If I want to use share button I should make share button myself with css.

FB.ui({
  method: 'feed'
  ,link: window.location.href
  ,picture: Page.get("image")
  ,name: Page.get("title")
  ,caption: '...'
  ,description: Page.get("description")
  },function(r){
    console.log("page shared",r);
});

Questions:

  • Why my old method does not work no longer, this usage is deprecated ?
  • Can I assign a callback function to the fbml share button ?
  • Which method is best ?

I know little English.So I will be happy if you write in simple language.
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-08T02:58:22+00:00Added an answer on June 8, 2026 at 2:58 am

    Why my old method does not work no longer, this usage is deprecated ?

    Facebook deprecated share button and functionality in favor of like and send buttons.

    Can I assign a callback function to the fbml share button ?

    You can’t, also since the share functionality is deprecated you should avoid using it.

    Which method is best ?

    According to facebook, you should use like/send buttons.

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

Sidebar

Related Questions

I have used og:image tag with my facebook share button. It is not picking
I have used Facebook Connect in my site but it is not working properly.
It's been explicitly written in Django-facebook that they recommend it to be used with
I have an email blast that includes some facebook and twitter share links. For
I've used the Facebook Like button (iframe version) correctly in the past but for
I been listening around that facebook iOS sdk is not functioning properly. Is there
How to share data in Facebook through android application. is that any Intent call
I would like to give a different url in Facebook share button rather than
I've used the iOS Facebook SDK before to post to one's timeline or share
We're used to using websites like youtube in full screen, but now Facebook offers

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.