Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android中的fbShare_Android_Facebook_Facebook Sharer - Fatal编程技术网

android中的fbShare

android中的fbShare,android,facebook,facebook-sharer,Android,Facebook,Facebook Sharer,有人能为我的应用程序提供一个创建facebook共享实现的好方法吗 我已经为facebook开发者网站创建了测试帐户和API密钥 我需要实现这样一种方式,当点击fbshare按钮时,一个特定的内容(动态内容)应该在相应的链接facebook帐户中作为状态链接发布 除了fb开发者,我还需要一些其他的方法来实现它 需要建议…(可能需要更好的结果)试试这个 它可能对你有帮助。试试这个 它可能会帮助您。您可以在facebook处理程序类的代码中使用此方法 public void postToFBWa

有人能为我的应用程序提供一个创建facebook共享实现的好方法吗

我已经为facebook开发者网站创建了测试帐户和API密钥

我需要实现这样一种方式,当点击fbshare按钮时,一个特定的内容(动态内容)应该在相应的链接facebook帐户中作为状态链接发布

除了fb开发者,我还需要一些其他的方法来实现它

需要建议…(可能需要更好的结果)

试试这个

它可能对你有帮助。

试试这个


它可能会帮助您。

您可以在facebook处理程序类的代码中使用此方法

public void postToFBWall(final String message, final String image){

        Thread thread = new Thread(){
            public void run(){
                try{
                    String descripton = "This is the plain text copy next to the image. All work and no play makes Jack a dull boy.";
                    Bundle parameters = new Bundle();
                    parameters.putString("message", message);// message to be posted on facebook wall
                    parameters.putString("link", image);//link of image to be posted on facebook wall
                    parameters.putString("name", "My wish");// name of link
                    parameters.putString("description", descripton);// description of you post
                    String response1 = facebook.request("me/feed", parameters, "POST");
                    Log.v("facebook response", response1);
                }catch (Exception e) {
                }

            }
        };thread.start();

    }

嗨,在facebook处理程序类的代码中使用此方法

public void postToFBWall(final String message, final String image){

        Thread thread = new Thread(){
            public void run(){
                try{
                    String descripton = "This is the plain text copy next to the image. All work and no play makes Jack a dull boy.";
                    Bundle parameters = new Bundle();
                    parameters.putString("message", message);// message to be posted on facebook wall
                    parameters.putString("link", image);//link of image to be posted on facebook wall
                    parameters.putString("name", "My wish");// name of link
                    parameters.putString("description", descripton);// description of you post
                    String response1 = facebook.request("me/feed", parameters, "POST");
                    Log.v("facebook response", response1);
                }catch (Exception e) {
                }

            }
        };thread.start();

    }