auth.extendssoaccesstoken fails 100% of the time

191 views
Skip to first unread message

blotto

unread,
Apr 26, 2013, 8:38:02 PM4/26/13
to fb_g...@googlegroups.com
We're using fb_graph (2.6.5), on our Heroku hosted App.  Our use of this gem is pretty simple :

 def self.get_facebook_user fb_token
    user = FbGraph::User.me(fb_token)
    user.fetch
  end

On looking at our 'Facebook > Insights > Activity & Errors' page there is only one method that triggers an error, but it occurs 100% of the time.  The method call is auth.extendssoaccesstoken and every call to it fails.  This is an iOS app where users login with facebook, we pick up the token from a hash where it is then passed to the above method.

I cant seem to pinpoint the reason why we would see  auth.extendssoaccesstoken  fail so badly.  I presume a config issue somewhere, but I am at a loss.

Any ideas?

Thanks
Nick


nov matake

unread,
Apr 26, 2013, 9:52:42 PM4/26/13
to fb_g...@googlegroups.com, fb_g...@googlegroups.com
First, check heroku log.

nov
--
You received this message because you are subscribed to the Google Groups "FbGraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fb_graph+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

blo...@gmail.com

unread,
Apr 28, 2013, 8:13:27 PM4/28/13
to fb_g...@googlegroups.com
I dont see any outgoing calls to this api. Unless im grepping wrong. e.g.

heroku logs  | grep 'facebook' 

 or any related keywork like auth, etc.  shows nothing

Im starting to think the iOS client could be to blame.

Thx

pom...@gmail.com

unread,
Jun 12, 2013, 9:20:56 AM6/12/13
to fb_g...@googlegroups.com, blo...@gmail.com
I'm also looking for this kind of problem.... and I found this from facebook developers:


my case is Scenario 5: Page Access Tokens,

the question is, how can we extend the access token ? I tried this method but it don't work:

fb_auth = FbGraph::Auth.new(YOUR_APP_ID, YOUR_APPLICATION_SECRET)
fb_auth.exchange_token! 'short-life-access-token'
fb_auth.access_token
Is there any raw method to call new endpoint?
https://graph.facebook.com/oauth/access_token?             
    client_id=APP_ID&
    client_secret=APP_SECRET&
    grant_type=fb_exchange_token&
    fb_exchange_token=EXISTING_ACCESS_TOKEN 

Wes Gamble

unread,
Jun 12, 2013, 2:56:43 PM6/12/13
to fb_g...@googlegroups.com
What does "it don't work" mean?

Do you get an access token? If so, is the expiry date later?

Wes

nov matake

unread,
Jun 12, 2013, 9:58:04 PM6/12/13
to fb_g...@googlegroups.com, blo...@gmail.com
You can see actual HTTP request & response by using fb_graph's debugging feature.
Reply all
Reply to author
Forward
0 new messages