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