none
Invalid redirect_uri: Given URL is not allowed by the Application configuration

    Question

  • Hi ,

    I keep getting the following error when trying to use my facebook integration with sharepoint.

    "Invalid redirect_uri: Given URL is not allowed by the Application configuration."

    <button class="fb-login" onclick="share_prompt()" />

    <script src="https://connect.facebook.net/en_US/all.js" type="text/javascript" charset="utf-8"></script>

    <style type="text/css">

    .fb-login
    {
        background: url('http://sstatic.net/ads/img/fb.png?v=5');
        background-position: -107px 0px;
        width: 70px;
        height: 22px;
        float: left;
        top: -1px;
        border: transparent;
        margin-left: 10px;
        margin-top: 19px;
    }
    </style>

    <div id="fb-root"></div> 

    <script>

    function share_prompt() {

    FB.init({
                appId      : '130649243729585',           
                status     : true,
                cookie     : true,
                xfbml      : true,
                oauth      : true,
              });

    FB.ui({     
     method: 'feed',         
     name: 'Facebook Dialogs',  
     redirect_uri:'http://sp2010sw140:20004/_trust/default.aspx?trust=Facebook&ReturnUrl=%2f_layouts%2fAuthenticate.aspx%3fSource%3d%252FSitePages%252FHome%252Easpx&Source=%2FSitePages%2FHome.aspx',    
            message: ''

          });  

    I unable to find where I given mistake?

    Help me!

    Regards,

    srinivas

    Regards,

    Srinu



    Tuesday, March 27, 2012 4:55 AM

Answers