[英]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.