I've started to use spring social facebook recently. However, I can not understand how to cast from facebook obj_id to Post.class (assuming that obj_id is a id of a post)? I've tried
but it does not work. Could anybody help me with describing it to me?
Code:
fetchObject(String objectId, Class<T> type)