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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:01:13+00:00 2026-06-01T22:01:13+00:00

I make an iframe application for a fan page, the problem is that if

  • 0

I make an iframe application for a fan page, the problem is that if user click on LIKE in top bar of facebook it reload application iframe page but dont refresh if user click on UNLIKE in same position

My applicatioon check if user is LIKE o NOT LIKE to the fan page and it cannot proceed if first dont click on LIKE button (the like button intend the button in top bar that out of iframe application)

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
  appId      : '<?php echo $app_id; ?>', // App ID
  status     : true, // check login status
  channelUrl : '//www. domain .it/<?php echo $sub_dir_app; ?>/cf.php', // Channel File
  cookie     : true, // enable cookies to allow the server to access the session
  xfbml      : true  // parse XFBML
});
FB.Event.subscribe('edge.remove', function(response) {
//top.location.reload();
    alert('ok NOLIKE');
});
FB.Event.subscribe('edge.create', function(response) {
//top.location.reload();
    alert('ok LIKE');
});
};
// Load the SDK Asynchronously
(function(d){
 var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
 if (d.getElementById(id)) {return;}
 js = d.createElement('script'); js.id = id; js.async = true;
 js.src = "//connect.facebook.net/it_IT/all.js";
 ref.parentNode.insertBefore(js, ref);
}(document));
  • 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-01T22:01:14+00:00Added an answer on June 1, 2026 at 10:01 pm

    Use Javascript SDK with the method 'FB.Event.subscribe'. The events are:
    edge.create – Like
    edge.remove – Unlike

    Read more:
    https://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/

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

Sidebar

Related Questions

I'm building a Page Tab application that will allow Facebook users to make purchases
I have a Facebook iframe application that I am monetizing via Google Adsense. On
I have an iframe Facebook application that uses the Facebook PHP SDK to authenticate
I have an IFrame Facebook application that uses Facebook C# SDK. I also use
I have developed a Facebook application that runs inside an iframe in the Facebook
My application is an iframe app so when the user changes page they do
I'm trying to make a like button for my iframe facebook app. With an
Can I get locale of facebook user (en_US etc.) on facebook iframe tab without
I want to make it so that in my chat-application, links to websites can
I want to make the scrollbars in my iFrame application disapear. So I checked

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.