I'm developing application in Android which can like a Url. Please provide me an example step by step to like a url using Open Graph of Facebook SDK.
Facebook provided the following source code, but I don't know how to use it correctly.
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();
使用Open Graph就像下面的链接一样: https : //developers.facebook.com/docs/opengraph/guides/og.likes
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.