本文整理汇总了Java中com.facebook.internal.LikeActionController类的典型用法代码示例。如果您正苦于以下问题:Java LikeActionController类的具体用法?Java LikeActionController怎么用?Java LikeActionController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LikeActionController类属于com.facebook.internal包,在下文中一共展示了LikeActionController类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onActivityResult
import com.facebook.internal.LikeActionController; //导入依赖的package包/类
/**
* To be called from an Activity or Fragment's onActivityResult method, when the results of a FacebookDialog
* call are expected.
*
* @param requestCode the request code
* @param resultCode the result code
* @param data the result data
* @param facebookDialogCallback the callback for handling FacebookDialog results, can be null
*/
public void onActivityResult(int requestCode, int resultCode, Intent data,
FacebookDialog.Callback facebookDialogCallback) {
Session session = Session.getActiveSession();
if (session != null) {
session.onActivityResult(activity, requestCode, resultCode, data);
}
if (LikeActionController.handleOnActivityResult(activity, requestCode, resultCode, data)) {
return;
}
handleFacebookDialogActivityResult(requestCode, resultCode, data, facebookDialogCallback);
}