FaceBook集成麻烦的问题

Abh*_*tel 7 php android facebook facebook-graph-api

我正在使用PHP进行Android游戏,但是当我尝试将分数发布到我的Facebook墙上时,描述与另一个应用程序合并.

从这个App Daily Tools和我的实际游戏中获取的描述是Just Double It

图片如下,徽标和说明错误

描述:我的游戏说明+我的应用说明.

描述是自动检测到的,而不是我写的.

这是我发布到Facebook的代码snippit

var APP_ID="*****************";

window.fbAsyncInit = initFacebook;
function initFacebook()
{
    FB.init({
        appId  : APP_ID,
        status : true, // check login status
        cookie : false, // enable cookies to allow the server to access the session
        xfbml  : true  // parse XFBML
    });

    FB.getLoginStatus(onFacebookLoginStatus);
};

(function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
}());

//the login function
function facebookLogin()
{
    var loginUrl="http://www.facebook.com/dialog/oauth/?"+
    "scope=publish_stream&"+
    "client_id="+APP_ID+"&"+
    "redirect_uri="+document.location.href+"&"+
    "response_type=token";
    window.location=loginUrl;
}

function postToWallUsingFBApi()
{
    var score=atob(document.getElementById("txtscore").value);

    var data=
    {
        caption: "scores "+score,
        message: "I challenge you to beat my score "+score + " in Just Double It! on your    Android Phone !!!",
        picture: "http://www.learning-delight.com/ldapps/Game/main.png",
        link: 'https://play.google.com/store/apps/details?id=com.appslight.justdoubleit',
    }

    FB.api('/me/feed', 'post', data, onPostToWallCompleted);
}

//the return function after posting to wall
function onPostToWallCompleted(response)
{
    (response)
    {
        if (response.error)
        {
            document.getElementById("txtEcho").innerHTML=response.error.message;
        }
        else
        {
            if (response.id){
                window.close();
                t = setTimeout("self.close()",500);
            }
            else if (response.post_id)
                document.getElementById("txtEcho").innerHTML="Posted as post_id responce "+response.post_id;
            else
                document.getElementById("txtEcho").innerHTML="Unknown Error";
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

Abh*_*tel -2

我已经使用 Facebook sdk for android 解决了我的问题,最初遇到了一些问题,所以无法使用 facebook sdk,但现在所有问题都解决了。谢谢您的回答。