Facebook post redirect

0

Hello, would like to ask a question about facebook post redirect. I made a facebook application that the user can only see it when it is logged in and it will be in a tab. I installed the tab using Static HTML: iframe tabs. When I enter the logged-in page I redirect to facebook login. However, when facebook performs the redirect it goes to the url where the application is and does not return to the tab. How do I configure facebook callback to go back to tab and not to iframe url?

Some comments:

In my login file I put it this way:

$helper = new FacebookRedirectLoginHelper( 'https:urldoapp.com.br' );

If I put the url of the tab it redirect error not allowing. If I put the url of the tab in the application settings in the Site URL field, facebook does not accept the url.

I can not figure out how to do the right setup. Does anyone know of any tutorial or how to do this correctly?

    
asked by anonymous 09.12.2014 / 15:06

1 answer

0

Watch out for the URLs you use for facebook, since not all of them will be accepted for redirects.

Try to manipulate via JavaScript. See this:

<script src="http://connect.facebook.net/en_US/all.js"></script><script>FB.init({appId:'??????????????',cookie:true,status:true,xfbml:true});FB.Event.subscribe('auth.login',function(){window.location="http://example.com";
      });
  </script>
  <fb:login-button>
     Login with Facebook
  </fb:login-button>

References:

  

link    link

    
09.12.2014 / 16:00