Displaying 1 result from an estimated 1 matches for "boajob".
Did you mean:
boajobs
2012 Oct 16
0
Rails 3 + fb_graph how to get access token to post to my own Facebook page
...day. So I registrated for a FB app. I now have:
my_app = FbGraph::Application.new("App ID");
acc_tok = my_app.get_access_token("App Secret");
me = FbGraph::User.me(acc_tok)
me.fetch
me.accounts
account = me.accounts.select {|account| account if account.name ==
"BoaJobs.com"}.first
page = FbGraph::Page.new(account.identifier)
note = page.note!(:access_token => account.access_token, :subject =>
@title, :message => @message, :link => @url)
But I am getting an error on the me.fetch line:
OAuthException :: An active access token must be use...