Displaying 2 results from an estimated 2 matches for "fbgraph".
Did you mean:
2bgraph
2011 May 01
0
Fbgraph
Hi All,
Am new to rails ,am using fbgraph gem in rails 3 having the follwoing error
{
"error": {
"type": "OAuthException",
"message": "Invalid redirect_uri: Given URL is not allowed by
the Application configuration."
}
}
In my controller,
def start
redirect_to c...
2012 Oct 16
0
Rails 3 + fb_graph how to get access token to post to my own Facebook page
I am using Rails 3 + fb_graph to post to my own Facebook page. I have
code that works, but it uses an access token that only works for a
couple of hours. And it is very annoying to refresh this access token a
couple of times a 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.identi...