2014-09-24 46 views
0

我正在開發可以像Url的Android應用程序。 請給我一個例子,一步一步地使用Facebook SDK的Open Graph來獲取網址。如何在Android中使用Facebook SDK的Open Graph來喜歡Url

Facebook提供了以下源代碼,但我不知道如何正確使用它。

Bundle params = new Bundle(); 
params.putString("object", "http://samples.ogp.me/226075010839791"); 
/* make the API call */ 
new Request(
    session, 
    "/me/og.likes", 
    params, 
    HttpMethod.POST, 
    new Request.Callback() { 
     public void onCompleted(Response response) { 
      /* handle the result */ 
     } 
    } 
).executeAsync(); 

回答

相關問題