agorapulse / grails-facebook-sdk

Facebook SDK Grails Plugin
http://agorapulse.github.com/grails-facebook-sdk/guide
30 stars 13 forks source link

Accessing FaceBookContext during Bootstrap #71

Closed harjitdotsingh closed 9 years ago

harjitdotsingh commented 9 years ago

I'm saving the userAccessToken and also the token given by the GraphClient. I want to make some calls to the FAceBook API from a quartz Job. How can I use the proxy object ? I didn't see any examples of usage.

benorama commented 9 years ago

I don't think you need a proxy object. You can directly use FacebookGraphClient in your quartz job?

def facebookClient = new FacebookGraphClient(userAccessToken)
def user = facebookClient.fetchObject("me")