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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:28:44+00:00 2026-06-18T07:28:44+00:00

Can i have a facebook share button without an app id? I have a

  • 0

Can i have a facebook share button without an app id? I have a facebook page, not an app and no associated app.

i have a div

<div class="fb"></div>

and the js file

$('.op-blackfb').click(postToFeed);

var postToFeed = function() {
    var share = {
      method: 'feed',
      u: 'http://mylink.goes/here'
    };
    FB.ui(share, function callback(response) {

        document.getElementById('msg').innerHTML = "Post ID: " + response['post_id'];
    });

  }

This used to work, but now it fails with an error in the popup dialog, i’m guessing after facebook changed the API. Does anyone know a workaround for this? I want to have a custom share button? I have the normal fb share button, but i want to have an image that doesn’t break the design.

This works without an app id but has the standard fb button

 <script>(function(d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)[0];
                    if (d.getElementById(id)) return;
                    js = d.createElement(s); js.id = id;
                    js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1";
                    fjs.parentNode.insertBefore(js, fjs);
                }(document, 'script', 'facebook-jssdk'));

 <div id="fb-root"></div>
 <p id='msg'></p>
 <fb:share-button type="button" style="display:inline-block;" share_url="http://my.link/here"></fb:share-button>

Thank you,

  • 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-18T07:28:45+00:00Added an answer on June 18, 2026 at 7:28 am

    How about a modal iframe? You can use facebooks sharer. You can use any button you want to open up the dialog. The problem is that this uses a facebook page, so you have to merge it into you design with some iframe or you must use a popup

    https://www.facebook.com/sharer/sharer.php?u=[the-link-you-want-to-share]
    

    Also facebooks documentation is also very well done

    https://developers.facebook.com/docs/reference/dialogs/feed/

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

Sidebar

Related Questions

I have a button that can have a focus css class associated with it
I have in my app a facebook share button, a tweet button. My app
I have a page tab application with a share button that invokes the Facebook
In my app, I have a facebook field that can refer to a facebook
I have an app where users can sign up with Facebook, in which case
Well, my website can not redirect to https://www.facebook.com/QuaFootSpa from http://quafootspa.com/ I have tried redirection
i have added facebook share button on my site, by clicking on that button
Have you seen an implementation of Facebook Share where the confirmation appears not in
I have a wordpress blog.I Want to add Facebook like Button &Facebook Share button
I'm trying to have a share button on my site that can share on

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.