[英]android facebook sdk 3.0 custom like button
我正在使用面向Android的Facebook SDK 3.0。
如何使自定义喜欢按钮
Request request = new Request(session, page_id + "/likes", null, HttpMethod.POST, new Callback()
{
@Override
public void onCompleted(Response response)
{
Log.i(DEBUG_TAG, response.toString());
// TODO Auto-generated method stub
if (response.getGraphObject() != null)
{
//Log.i(DEBUG_TAG, response.toString());
}
}
});
RequestAsyncTask task = new RequestAsyncTask(request);
task.execute();
page_id = 417732304946490
具有OAuthException(#3)应用程序无法进行此API调用。
没有办法在app中使用?
Facebook图形API不提供喜欢Facebook页面的功能。 相反,您可以使用页面URL打开webview,以便您可以登录并喜欢您的页面。
// To open webview
String url = "your page URL";
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(i);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.